Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot Send / Receive Email


AltonToth

Recommended Posts

I have just installed OSC version 2.2MS2 yesterday, and it installed smoothly and without a hitch. However, I am unable to send emails from the administrator account, and when people make orders the admin email address is unable to receive them. It says that it has sent them, but they never come to the email address...Any ideas? I have included my settings from the configuration panel, and my server is both SMTP and sendmail enabled. Thanks for your help

 

Alton Toth ([email protected])

Admin, Bitlady.com

 

Server Values (Remote Server, unable to configure)

sendmail_from no value no value

sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

serialize_precision 100 100

short_open_tag On On

SMTP localhost localhost

 

 

Configuration > My Store

Email Address: [email protected]

Email From Address: [email protected] (have tried changing this to various values, doesnt work still)

Send Extra Order Emails To:

 

 

Configuration > Email Options

 

Email Transport Method: smtp

Email Linefeeds: LF

Use MIME HTML When Sending Emails: true

Verify Email Addresses Through DNS: False

Send Emails: true

Link to comment
Share on other sites

Check your error logs in osc and if you have php configured to log errors check there to then goto then look at this it fixed my mail problem it is bug report 1310

 

 

 

Description

SMTP sending of emails, both the admin email.php and catalog email.php modules, does not function correctly. Emails are listed as sent, but are never received. I tried a known working, non authenticating smtp server. After applying a contribution (discussed in this thread: http://www.oscommerce.com/forums/viewtopic.php?p=204554#204554), SMTP sending worked flawlessly.

 

Austin519

[email protected] @ 08/07/2003 04:43:21

PHP mail functions have several problems which we would like to address.

 

Marked as pending.

[email protected] @ 08/07/2003 13:31:35

Working on bugs myself as well. First, that contribution did not allow email to work flawlessly, just single line emails (I assume fixing any CRLF errors in the header). I checked tep_convert_linefeeds...the wrapper function for str_replace and ereg_replace depending on version. str_replace is causing CRLF errors, while ereg_replace is not. A quick fix is to comment out the if/else to only allow ereg_replace. I assume the parameters were just fed into str_replace incorrectly and it's not doing its job in the body. Now, with those lines commented out I am able to send single and multi line emails without any trouble, but I receive two copies of the same email: one from the correct address, one from [email protected]. I am tentatively going to assume that's because the contribution and the original code are doing a mail. Also HTML mail doesn't seem to actually send HTML. Going to check on that as well.

 

 

 

 

good luck

Link to comment
Share on other sites

the file i edited is in catalog/includes/functions/general.php at the end of the page it looks like

 

 

// nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n)

function tep_convert_linefeeds($from, $to, $string) {

#if ((PHP_VERSION < "4.0.5") && is_array($from)) {

return ereg_replace('(' . implode('|', $from) . ')', $to, $string);

} #else {

#return str_replace($from, $to, $string);

#}

#}

?>

 

if you commetnt out these lines it sends mail somthing to do with line feeds my error reports told me wont send crlf not accepted

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...