Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mail Not Being Sent From Admin.


enigmabunny

Recommended Posts

Hi guys / gals. I have only just noticed, but when I send an e-mail from admin, it says it is sent, but nothing is received at the other end. I have no idea what i should be looking for to resolve this. any ideas?

 

Thanks

Link to comment
Share on other sites

The higher level modules (like tep_mail.php or contact_us.php ) that utilize the email class do not check the status returned. The email is always reported as successfully sent to the user. I can understand why the higher level modules are coded this way. What are they going to do, report the error to the user who can do nothing about it?

 

Unfortunately, there is no logging / debug capability to turn on to easily figure out what is going wrong.

 

You can hack some code into the tep_mail.php to dump the email class return status. I suspect you will find that it is returning False (i.e., an error occurred).

 

Check the settings of the following parameters in admin -> My Store

 

Store Owner Customer Server

E-Mail Address [email protected]

E-Mail From [email protected]

 

The above parameters define the source addresses for the various emails originated by osCommerce.

 

Also check the email parameters in admin -> configuration -> email options

 

E-Mail Transport Method smtp

E-Mail Linefeeds CRLF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

The transport method will depend on what type of server you are hosted on; sounds like you already have this set correctly. You could try to toggling the linefeed parameter between CR and CRLF and see if this solves your problem. On a linux box CRLF is correct.

Link to comment
Share on other sites

It shouldn't have anything to do with hotmail. I assume the hotmail email address you used was valid. I've been tempted to create / build-in a debug capability into the 901 contribution to collect the SMTP exchange and dump it to a web page and/or file.

 

I can't do it today, but I might get around to it this weekend.

Link to comment
Share on other sites

If the server isn't configured to put "Reverse DNS Lookups" in the email header, some email providers will just delete the email and you'll never see it.

 

I had the same situation on a site I managed a few years ago. They changed the server setting to put them in the email headers and everything was OK after.

 

AOL was like that a few years ago. I don't use it now so I don't know about their current policy.

 

But, that would explain why the mail gets to some addresses and not others.

 

"Reverse DNS Lookups" would be something to ask your host about...

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...