Page 1 of 1
SMTP: Error: DATA not accepted from server!
Posted: Mon Jul 13, 2015 5:31 pm
by welle93
hey
i got a mail problem, the shop sents both contact mail and new customer mails, but not ordre mails.
in error log i got this : PHP Notice: Error: DATA not accepted from server! in ..../vqmod/vqcache/vq2-system_library_mail.php on line 380
in line 380 is this:
Code: Select all
if (substr($reply, 0, 3) != 250) {
trigger_error('Error: DATA not accepted from server!');
exit();
}
Any one know how i can fix this?

Re: SMTP: Error: DATA not accepted from server!
Posted: Thu Sep 03, 2015 12:00 am
by jtkmobile
Hello,
I have exactly the same problem with OC 2.0.3.1
Did you find an answer?
Regards,
John
Re: SMTP: Error: DATA not accepted from server!
Posted: Thu Nov 19, 2015 10:11 pm
by psycmos
Notice: Error: DATA not accepted from server! in public_html/system/library/mail.php on line 380
In My email i have the SMTP configs with SSL you can google it and use your configs without problem, because this problem come from opencart.
Opencart mail problem when use contact-us page, can't send email.
This FIX works well, in 1.5.x.
GO TO \catalog\controller\information\contact.php and locate:
$mail->setFrom($this->request->post['email']);
$mail->setSender($this->request->post['name']);
Replace with:
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->request->post['email']);
Source:
https://opencartforum.com/topic/23861-% ... %82/page-2
Thanks to
sergeyvasin
Re: SMTP: Error: DATA not accepted from server!
Posted: Sun Feb 21, 2016 9:54 pm
by mRAlecs
Did anybody resolve this problem ?
I cannot send any e-mails. Not user registration, order confirmation, cannot use the contact form.
always i get in error log:
PHP Notice: Error: DATA not accepted from server! in /system/library/mail.php on line 418
I have to point out that my hoster has this SMTP check.
I have managed to send only one e-mail in the customer form, i used my office@tonerland... account.
and this office being the same account in the mail configuration, it worked.
My settings are:
Protocol: SMTP
SMTP Hostname: localhost
SMTP Username: office@tonerland....
SMTP Password: it is ok
SMTP Port: 587
i used the same settings into an outlook account and it works. But not in Opencart.
Anyone any ideas ?
Thank you
Re: SMTP: Error: DATA not accepted from server!
Posted: Mon Feb 22, 2016 12:13 am
by victorj
change:
SMTP Hostname: localhost
to
SMTP Hostname: mail.yourdomain.com
also check if youre using the right smtp port, normally its 25
Re: SMTP: Error: DATA not accepted from server!
Posted: Mon Feb 22, 2016 2:54 am
by mRAlecs
Thank you for fast reply.
I have tried also with mail.domain but the same thing. the port is ok.
Hoster told me the configuration is ok with localhost and the port is the right one for sure.
I have found a discussin that is exactly as my problem but did not manage to work the solution.
https://github.com/opencart/opencart/issues/3756
thanks,
Alexandru
Re: SMTP: Error: DATA not accepted from server!
Posted: Mon Oct 07, 2024 4:18 am
by pacerhard
I was able to address the issue with Zoho mail by following change:
/opencart/system/library/mail/smtp.php
From:
Code: Select all
$header .= 'From: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . [b]$this->from[/b] . '>' . PHP_EOL;
To:
Code: Select all
$header .= 'From: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . [b]$this->smtp_username[/b] . '>' . PHP_EOL;