Guest Posted February 17, 2007 Posted February 17, 2007 :angry: <---This is my angry face I started a completely new site, configured it and tried to do a simple order and NO ORDER EMAIL goes to the customer....However I get the Extra Mail, so I know mail works to some degree. PLEASE HELP. I'm at my wits end. My config settings are practically virgin here are my email options under config My server only supports "sendmail" hence the selection here is My Store stuff: Can someone please tell me why this happening. Teresa
davidinottawa Posted February 18, 2007 Posted February 18, 2007 :angry: <---This is my angry faceI started a completely new site, configured it and tried to do a simple order and NO ORDER EMAIL goes to the customer....However I get the Extra Mail, so I know mail works to some degree. PLEASE HELP. I'm at my wits end. Can someone please tell me why this happening. Teresa In includes/functions/general.php change the line: $message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject); to $message->send($to_name, $to_email_address, '', $from_email_address, $email_subject); or in the configuration -> email options you simply change the sendmail to smtp or Have you tried changing the "From" email addresses at the store configuration in admin? Configuration --> My Store Title Value ----- -------------------------------- Store Name http://www.storename.com Store Owner Store Owner Name E-Mail Address [email protected] E-Mail From [email protected] Country United States etc. Where "xxxxx" stands for the name of your actual email account as you've set it up with your host provider. The PHP scripts should then pick these up on the fly - no code changes required. or This is caused by problems in how the OSCommerce script sends the friendly names through the php mail function. When I watched my logs, PHP mail() would essentially send the following line to my smtp server: MAIL FROM: < Friendlyname<[email protected]>> While this may work for unix mail servers, windows will bounce this syntax back as an invalid address. I changed the line generating the from line as follows: FROM: 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)); TO: return mail($to_addr, $subject, $this->output, 'From: ' . $from_addr . $this->lf . 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); Essentially sending two FROM headers - the first one being compatible with MS mail servers, and the second being read by the email clients for display.
Guest Posted February 18, 2007 Posted February 18, 2007 I can't tell you wonderful it is to have you respond with some ideas. I had tried so many things that I think I was just plumb out of ideas. I haven't tried these yet, but I did try something similar to your first thought...but I will try your approach as it makes more sense. The last option you had, hit a chord with me as something very odd happened the other day. I had been using my .mac account as the customer because I could make aliases with it, but I opted to try one of my domain emails in testing yesterday and I received the customers copy that time....HMMMM does that make you think that it is indeed something to do with the friendly email thing your were talking about? Again I would like to reiterate how happy I am to have your response, thank you so much for your time! Teresa :D <--this is my happy face
♥Vger Posted February 18, 2007 Posted February 18, 2007 Before you start playing around with code do this: Where you have entered the mail address as Support<[email protected]> change it to just read [email protected] - and this may solve your problem. Vger
Guest Posted March 4, 2007 Posted March 4, 2007 Before you start playing around with code do this: Where you have entered the mail address as Support<[email protected]> change it to just read [email protected] - and this may solve your problem. Vger Just thought I would give an update.....I tried ALL the suggestions here, all of which did not work, but not from lack of trying!!! No matter what I did I could not get an email to come to my .MAC account. I got thinking that maybe this was a mac type issue. Still not sure about that. But I used every email address I have ever had AOL, Earthlink, Netscape, Yahoo, my website domain, obviously my mac account with several aliases....This was my finding no matter what, Earthlink and my domain emails always worked but not the others. Then I found an email debugger in the contributions section and tried that. Although very nifty tool, not a fix...What ultimately worked was a fix I found in the contributions section....And to tell you the honest truth, I really don't know if it was the fix or a combo of all these other things I did plus the fix that finally did the trick, but either way here you go http://www.oscommerce.com/community/contributions,4629 Its called AOL send email problem fix by Help4Hosters.com Thank you Mr/Ms Help4Hosters.com, whom ever you are, Thank you Thank You Thank You!!! :thumbsup: Teresa
Recommended Posts
Archived
This topic is now archived and is closed to further replies.