Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site not sending emails


Guest

Recommended Posts

Posted

I have the email set for sending via smtp, is there something else I have to do to get this to work correctly?

 

Thanks

Posted

Not sending to you, or not sending to customer?

-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Posted

Not sending to the customers, If I try to send one to myself (email addres is on the same server) it sends it and I recieve it. But you wont receive it from any other email address (example:My email at my ISP, yahoo, ect...) I tried the E-Mail Testing Script found it Contributions last night. Same results, I can receive html and php email on the same server as it is being sent from but no other email address.

Posted
I have the email set for sending via smtp, is there something else I have to do to get this to work correctly?
On a MS Windows server? Otherwise, sendmail would be the setting.

 

The mail server also needs to be configured to send emails out from the store (it would send email to you because it is already configured to accept email for local addresses). Sometimes you can do this by setting it to send from your local IP. In other cases, you might have to use the SMTP w/ authentication contribution.

 

Hth,

Matt

Posted

Ok, The feature pack worked and it is now sending emails. Only one issue, it is placing a "n" where a "r" should be:

 

Mobile PC Docton

------------------------------------------------------

Onden Numben: 2

Detailed Invoice: http://www.mobilepcdocton.net/shop/catalog....php?onden_id=2

Date Ondened: Sunday 30 Novemben, 2003

 

The comments fon youn onden ane

 

 

 

 

 

Youn onden has been updated to the following status.

 

New status: Pnocessing

 

Please neply to this email if you have any questions.

Posted

At best guess, it is having problems with the regular expression replacement and is replacing r with n rather than /r with /n. Not sure why this is happening nor how to fix it, but that is where I would look in the regular expression sections.

 

Hth,

Matt

Posted

If you trace an email through the process (checkout_process.php to tep_mail to the email class), you will see that it replaces the linefeeds using the tep_convert_linefeeds function. The likely problem would be between the call and the function itself. What it should be doing is replacing '\r' with '\n'. For some reason, it seems that in your case it is replacing 'r' with 'n' instead. At least that would be my first guess.

 

Hth,

Matt

Posted

Here is what is there:

 

/**

* Adds plain text. Use this function

* when NOT sending html email

*/

 

function add_text($text = '') {

$this->text = tep_convert_linefeeds(array("rn", "n", "r"), $this->lf, $text);

}

 

/**

* Adds a html part to the mail.

* Also replaces image names with

* content-id's.

*/

 

function add_html($html, $text = NULL, $images_dir = NULL) {

$this->html = tep_convert_linefeeds(array("rn", "n", "r"), '<br>', $html);

$this->html_text = tep_convert_linefeeds(array("rn", "n", "r"), $this->lf, $text);

 

if (isset($images_dir)) $this->find_html_images($images_dir);

}

 

 

I have tried changing it but with no luck, any ideas?

Posted

i am having a similar problem,but mine is that it will send to the customer but not to the store.

 

I have SMTP mail set up on my local machine which works fine sends emails to customer and the store but when i am in my ISP site it sends to the customer but not the store.

Archived

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

×
×
  • Create New...