Post by highvibes » Mon Aug 29, 2011 8:34 pm

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.

New member

Posts

Joined
Sun Aug 07, 2011 10:38 pm

Post by orieszkowicz » Fri Oct 28, 2011 3:18 am

How you solved this issue?

Newbie

Posts

Joined
Sat Oct 15, 2011 2:18 am

Post by highvibes » Sat Oct 29, 2011 10:32 pm

In mail settings change "SMTP" to "Mail".

New member

Posts

Joined
Sun Aug 07, 2011 10:38 pm

Post by blastter » Fri Jan 09, 2015 2:48 am

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.

Newbie

Posts

Joined
Fri Jan 09, 2015 1:05 am

Post by revokeho » Wed Sep 07, 2016 1:29 am

change
$mail->setFrom($this->request->post['email']);
to
$mail->setFrom($this->config->get('config_email'));
$mail->setReplyTo($this->request->post['email']);

Newbie

Posts

Joined
Wed Sep 07, 2016 1:27 am

Post by tdaubs » Fri Nov 11, 2016 4:55 am

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.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California
Who is online

Users browsing this forum: Baidu [Spider] and 86 guests