Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mail Sending Problems


hst9

Recommended Posts

:oops:

Hello,

I am having problems sending mail from on OSC site. I have searched previous threads and tried to adopt what has been mentioned but I still get errors.

I am running OSC from a localhost using windowsXP, IIS, PHP and MYSQL. My settings in ADMIN email options are: SMTP, CRLF, false, false, true.

In regards to php.ini it is set the following way:

[mail function]

; For Win32 only.

SMTP = my.static.ip.com ; for Win32 only

 

; For Win32 only.

sendmail_from = digispan.net ; for Win32 only

 

seeing I run from my own server and I have a static ip what do I put in SMTP? I use a dynamic ip service, but when I entered this in the SMTP = I got an error saying no smtp server. and what does sendmail_from refer to? my SMTP virtual server domain?

 

 

you can test the site at : http://digispan.ath.cx

Site has not been edited at all, just testing atm.

Any help in getting mail to work would be appreciated.

thanks in advance.

 

 

This is my current error messge:

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for test@test.com in c:inetpubwwwrootcatalogincludesclassesemail.php on line 500

 

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for digispan@australia.edu in c:inetpubwwwrootcatalogincludesclassesemail.php on line 500

 

Warning: Cannot modify header information - headers already sent by (output started at c:inetpubwwwrootcatalogincludesclassesemail.php:500) in c:inetpubwwwrootcatalogincludesfunctionsgeneral.php on line 23

Link to comment
Share on other sites

[mail function]

; For Win32 only.

SMTP = my.static.ip.com ; for Win32 only

Try localhost instead. Or 127.0.0.1

 

; For Win32 only.

sendmail_from = digispan.net ; for Win32 only

 

Use a complete (and valid) mail address here. The receiving SMTP server will do a reverse DNS lookup on your domain name, so you must use a domian name with a valid MX-entry here.

 

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for test@test.com in c:inetpubwwwrootcatalogincludesclassesemail.php on line 500

 

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for digispan@australia.edu in c:inetpubwwwrootcatalogincludesclassesemail.php on line 500

 

This means that your XP-SMTP mailstub cannot reverse lookup test.com (obvious). Adn it also means that it is not configured to relay for the australia.edu domain, which I guess is your local network name that is not a valid domain for the outside world.

 

The solution is hidden deep in your XP-config and is called "masquerading domain". Set this to a valid (reverse lookup works) domain name and all of a sudden things will work ;-)

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Link to comment
Share on other sites

  • 1 month later...

Hi Guys

 

I have a storefront already online. I am having the same problem with the smtp mail but I am using real email addresses that are available in the real world. I am getting error "unable to relay for" on line 500

Any Idea?

 

Thank you!!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...