Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

v2.3.1 - Email - customers received Email problems


AnthonyAU

Recommended Posts

Posted

Hello everyone

 

 

1, Our store confirmation Email is classified as a spam mail when customers received it.

 

2, All of the emails sent from our store included the Host name next to our store sender Email address when customers received it. The “From” Email displayed as [email protected] via host name.

 

Example: [email protected] via host name

 

This is our store E-Mail options setting

 

Host server: Linux

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS true

Send E-Mails true

 

Anyone know what happen and how to fix it?

Posted
Verify E-Mail Addresses Through DNS true

change to false

 

and set theDomainKeys and SPF records to DNS, you will find this option in cPanel --> Mail --> Email Authentication

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted

Hi Alex

 

thank you for your reply and the first problem was fixed but the second problem still happen.

 

2, All of the emails sent from our store included the Host name next to our store sender Email address when customers received it. The “From” Email displayed as [email protected] via host name.

 

 

 

Problem only happen sent Email via by store, for example create account success Email, order Email and send Email from store adminUI --> Tools --> Send Email, the Host name will be show next to our store sender Email address when customers use Google Mail received it.

 

But if i send Email via by host webmail when customers use Google Mail received it the sender Email address will not be show Host name.

 

So if i don't want our customer to see the Host name from Email sender. What can i do?

 

where should i fix and how should i fix? code, store Email setting, Host Email setting or Google Mail problem?

 

Alex or anyone know about it?

Posted

Hi Alex and Jan

 

Thank you very much for your reply.

 

First problem got the fixed by Alex.

 

set theDomainKeys and SPF records to DNS, you will find this option in cPanel --> Mail --> Email Authentication

 

Second problem got the fixed by Jan.

 

See also (bottom, below "Why don't my customer's receive an email if they are using AOL?") this page.

 

UNIX SERVER

 

catalog/includes/classes/email.php

catalog/admin/includes/classes/email.php

 

Do a search for "EMAIL_TRANSPORT" and look for the following code:

 

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));

} else {

return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

 

 

You will need to add , '-f' . $from_addr to the last line of the code:

 

} else {

return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers), '-f' . $from_addr);

 

 

Again thank you very much.

  • 7 months later...
Posted

catalog/includes/classes/email.php

catalog/admin/includes/classes/email.php

 

Do a search for "EMAIL_TRANSPORT" and look for the following code:

 

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));

} else {

return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

 

 

You will need to add , '-f' . $from_addr to the last line of the code:

 

} else {

return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers), '-f' . $from_addr);

 

 

THIS is the solution!! I've been searching so long for why my email sendmail wasn't working. Now it works. Thank you so much. I'm not sure why it took so long for me to find this. I searched email, sendmail, smtp, email error, sendmail problem, php mail, newsletter, contact us, email options, contact form ... (I'm typing all that so the next person hopefully has an easier time searching for it ;) )

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...