Post by dun7ill » Sun Apr 14, 2019 4:56 pm

Hi All,

I've problem when someone send a message through contact us form.
When I receive the message I can't see the sender email !!
It's shown my Opencart email as sender !!
Everything is okay the name of sender and the message but I can't see the sender email.
Could you please help me ?

New member

Posts

Joined
Mon Nov 06, 2017 5:15 am

Post by D3MO » Sun Apr 14, 2019 5:38 pm

It is done because if you use SMTP instead of mail sender, mostly in all smtp sender CAN'T be "any email" this is most of smtp configurations not to allow to send for example from yourdomain.com smtp using email bill_gates@microsoft.com:))

but if you use mail function, you can try this change:

============================================
In catalog/controller/information/contact.php FIND:
============================================

$mail->setFrom($this->config->get('config_email'));

========
REPLACE:
========

$mail->setFrom($this->request->post['email']);

But if you use SMTP. and don't receive emails you can try this one change:


============================================
In catalog/controller/information/contact.php FIND:
============================================

$mail->setFrom($this->config->get('config_email'));

===========
BELOW ADD:
===========

$mail->setReplyTo($this->request->post['email']);

Opencart Expert | voldemaras@gmail.com
Skype - programanija | Gtalk - voldemaras@gmail.com
Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am
Who is online

Users browsing this forum: JNeuhoff, nonnedelectari and 106 guests