Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Failed to connect to mailserver, AND Cannot modify header information


AlanAtApplied

Recommended Posts

I have my development machine networked to my test machine, where I have (WAMP) set up and running. Both are on Windows XP.

 

I can send email from the OsCommerce tools. No problem.

 

I can always create a new account, but when I have the ?Send E-Mails? set to True I get the following:

 

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php on line 520

 

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\includes\classes\email.php:520) in C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 33

 

I have put ini_set(SMTP, " mail.myplace.com"); in the email.php, and tried it at the top and middle, at line 500, 520, inside and outside conditionals, rebooted the server, not rebooted the server, and pretty much beat my head against the keyboard.

 

I have also check both email.php and general.php for superfluous characters before and after the php start and end tags, as well as checking around lines 520 and 33 in BOTH files.

 

I have also checked the forums here and on the web, heck, I even tried the German oscommerce support site?? All I?m allowed to say according to etiquette is AaaRRGHhhhhh!

 

E-Mail Options are as follows.

 

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 (Although to continue set up I have this False for now.)

 

Help and thanks

Alan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...