Opencart Email Functions Were Working Now Have Stopped.

  • Answered

We have been using Opencart hosted on with Inmotion hosting for just over 12 months now. We initially set up a Opencart store and have been populating it with products. During this time we have had new customers sign up, made sales and generally everything has been going smoothly.

However, the last couple of weeks has seen the ability for the shop to send out a mail when a new customer signs up with a new account, an amendment to a customers order status or confirmation of a order suddenly stop working and start throwing out error messages. Below is a example of a error message that Opencart produced after trying to sign up for a new account;

Notice: Error: DATA not accepted from server! in /home/*USERNAME*/public_html/system/library/mail.php on line 417

Below is a error message generated by Opencart after we have attempted to amend a customers order status from "processing" to "shipped"

SyntaxError: Unexpected token <
NOTICE: ERROR: DATA not accepted from this server! in /home/*USERNAME*/public_html/system/library/mail.php on line 417

We have had Opencart setup to use SMTP without any issues what so ever until recently so i see no reason why the settings would be incorrect as they have certainly not changed. The one change i have made since it stopped working was to change the SMTP port number from 587 (which has worked no problem) to 25. Port 25 did work for a short period (30mins) until that started producing the same error messages.

So now i am at a bit of a loss as to why this is happening. As i say, nothing has been changed settings wise our end, so unless something has changed with Inmotion or if our Opencart has suddenly decided to have a melt down i dont know!

Any help would be great!
Hello Ratul29,

We're sorry to hear you're having the same problem as Iansfishingtackle has reported above. The one thing that I recommended was that he submit a support ticket to our live support team in order to look at the mod security rules possibly conflicting with the application. His solution - though it's more of a work around- was to setup emails with a different mail server - Google. I hope that helps to answer your question! If you require further assistance, please let us know!

Arnel C.
Thanks, iansfishingtackle, we appreciate any further data you can provide.
Hello iansfishingtackle,

Thank you for contacting us about the error you're seeing in Opencart. Port 25 is blocked by most Internet Service Providers. Are you getting these errors with all messages or just the same being tried over again? Is the issue widespread to every email sending out opencart?

Christopher M.