Page 1 of 1
[Solved] Contact Form - Error: RCPT TO not accepted
Posted: Mon Aug 29, 2011 8:34 pm
by highvibes
Opencart v1.51
When submitting a message through the contact form, the mail server returns "Error: RCPT TO not accepted from server!"
I've double checked the email settings and other mails like registration and purchase seem to be working fine.
Absolutely no idea on this. Any help appreciated.
Re: [Solved]
Posted: Fri Oct 28, 2011 3:18 am
by orieszkowicz
How you solved this issue?
Re: [Solved] Contact Form - Error: RCPT TO not accepted
Posted: Sat Oct 29, 2011 10:32 pm
by highvibes
In mail settings change "SMTP" to "Mail".
Re: [Solved] Contact Form - Error: RCPT TO not accepted
Posted: Fri Jan 09, 2015 2:48 am
by blastter
its a problem in the /system/library/mail.php, it's sending the mail as if was from the contact form filler.
if someone need explanation please ask, I send an explanation how to fix it.
Re: [Solved] Contact Form - Error: RCPT TO not accepted
Posted: Wed Sep 07, 2016 1:29 am
by revokeho
change
$mail->setFrom($this->request->post['email']);
to
$mail->setFrom($this->config->get('config_email'));
$mail->setReplyTo($this->request->post['email']);
Re: [Solved] Contact Form - Error: RCPT TO not accepted
Posted: Fri Nov 11, 2016 4:55 am
by tdaubs
revokeho wrote:change
$mail->setFrom($this->request->post['email']);
to
$mail->setFrom($this->config->get('config_email'));
$mail->setReplyTo($this->request->post['email']);
Which version of Opencart are you using? This code doesn't appear in 1.5.4.