Page 1 of 1
What is causing this error?
Posted: Fri Oct 23, 2015 12:06 am
by fdarn
I am using opencart 2.03
This error shows up in the error log when customers place an order. It also shows up in a pop up window when I update the order status.
2015-10-22 16:02:31 - PHP Notice: Error: DATA not accepted from server! in /home/holsters/public_html/system/library/mail.php on line 418
Re: What is causing this error?
Posted: Fri Oct 23, 2015 12:37 am
by OSWorX
That simply means .. basically nothing, because error messages in OpenCart are sometimes that kind of useless that it would be better to let 'em ..
From what I can see (line 418) that error can mean everything, but based on that, that you are using SMTP, one or more settings are not valid.
If you know how to edit a file, you could replace the line 418 with that here:
Code: Select all
trigger_error('Error: DATA not accepted from server - code [' . $reply . ']');
This will display the return code.
And to check what is returned, you can see here all codes:
http://www.serversmtp.com/en/smtp-error
Re: What is causing this error?
Posted: Sat Nov 28, 2015 6:43 pm
by fogma
I've just noticed this problem.
The $reply code was empty when I reproduced the issue, so I increased the timeout from 5 seconds to 30 seconds (to match what I've got set on my other opencart shops) and I think the problem has gone away.
More testing will confirm.....
Re: What is causing this error?
Posted: Thu Dec 03, 2015 6:34 am
by haxcop
Well I have added the code line that suggest @oswork and now it shows me this error PHP Notice: Error: DATA not accepted from server! - code [554 Message rejected: Email address is not verified.]
It's weird because i can send emails with the email option, and also i receive the notifications for sales and new customer... this only happens for Contact_us form. with and without the re-captcha available.
any other suggestions ?
Regards!.

Re: What is causing this error?
Posted: Thu Dec 03, 2015 6:40 am
by fogma
Emails sent via the contact form are sent with the from address set to the customer's address.
Your mail server may be complaining that the "from" address does not match the email address of the account the server is associated with.
Try putting in an email address that is @the domain the mail server is expecting. For example if the mail server is dealing with the
fred@example.com account, then send a contact us email with the "from" name set to
fred@example.com. I bet that will work....
Gary
Re: What is causing this error?
Posted: Thu Dec 03, 2015 7:00 am
by haxcop
fogma wrote:Emails sent via the contact form are sent with the from address set to the customer's address.
Try putting in an email address that is @the domain the mail server is expecting. For example if the mail server is dealing with the
fred@example.com account, then send a contact us email with the "from" name set to
fred@example.com. I bet that will work....
Gary
Thanks Gary, this works but the problem is, everyone has a different email address. so, how would be a solution?. current exchange server is AWS-SES
Haxcop
Re: What is causing this error?
Posted: Thu Dec 03, 2015 7:06 am
by fogma
You'll either need to change the opencart code to set the from email address to be one that the mail server will accept.
Or
You'll have to use a different mail server that is less fussy about the "from" address.
Gary
Re: What is causing this error?
Posted: Thu Dec 03, 2015 7:28 am
by haxcop
fogma wrote:You'll either need to change the opencart code to set the from email address to be one that the mail server will accept.
Or
You'll have to use a different mail server that is less fussy about the "from" address.
Gary
Hi Gary, you are right, really weird this behaviour from AWS-SES - i choose this provider because it has less bounce rate than Microsoft, Gmail and Mandrill... But due to this I just have changed back to Mandrill and Wuala! Works without any issue.
Thanks again Gary! I
Re: What is causing this error?
Posted: Thu Dec 03, 2015 7:33 am
by fogma
They have clearly configured the server to reject email that could be sent by spammers. It is very common for spammers to send emails with a different from address. It is far far less common for "normal" users to change the from address.
Gary