Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order E-Mails not Sent; Regular mail is.


shervin

Recommended Posts

Hi,

 

My order emails aren't coming in. I've gone through and done dummy orders and they just won't email to me. I tried using the admin's "Send Email" tool to my email address and that worked. I've tried different email addresses in config for store owner so the problem isn't on my side.

 

Why are they not sending?

 

 

TIA

Link to comment
Share on other sites

put some debug code in the send function of the email class or hard-code an email there. See if the mail works like this.

 

catalog\includes\classes\email.php function send()

 

and if it is a unix server your site is on you could try changing this line in that file:

 

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

 

with this

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);

Link to comment
Share on other sites

put some debug code in the send function of the email class or hard-code an email there. See if the mail works like this.

 

catalog\includes\classes\email.php function send()

 

and if it is a unix server your site is on you could try changing this line in that file:

 

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

 

with this

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);

 

just to be on the safe side ... you have entered your store email addy in the "send extra order emails to " field?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...