Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

smtp email send problem


banderaz

Recommended Posts

Hi,

 

osc 2,2rc1

win 2000 box

apachefriends/xampp

 

"Out of the box" install, and can't send email. Changed in admin to "smtp" and just a email-adress in the "from" field. (Found theese two in other post here)

Edit 3 files named php.ini, and replaced "localhost" with smtp.myisp.com (with an actuall adress ofcourse) :)

php.ini found and editet from thise path:

c:/xampp/apache/bin

c:/xampp/php

c:/xampp/php/php4

 

This is the error I get when a customer buy something, and do the checkout, and if I try to send email to a customer from admin:

 

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:\xampp\htdocs\catalog\admin\includes\classes\email.php on line 520

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

 

Really hope there is a simple solution to this :)

Thank you

Link to comment
Share on other sites

I'm not certain the SMTP based email works out of the box (I never tried to get it working out of the box). The sendmail based email does work on the baseline distribution, but this mode is of no use on a Windows based platform.

 

You need to load the SMTP Authentication contribution (http://www.oscommerce.com/community/contributions,901) to correctly support SMTP based email with or without password authentication.

 

There is an official support thread for this contribution which can be found at http://www.oscommerce.com/forums/index.php?showtopic=274251.

 

You might also look at the posting http://www.oscommerce.com/forums/index.php?showtopic=278981 for a sample configuration

 

Ben

Link to comment
Share on other sites

I suddenly found a post (among many many email problem posts...)

 

I edit configure.php in /catalog/includes and /catalog/admin/includes

 

At the bottom of both files, I add the following

 

ini_set("SMTP","smtp.myisp.com"); 
 ini_set("smtp_port","25");
 ini_set("sendmail_from","[email protected]");

 

(With real names/adresses)

 

Works like a charm! No need to add any extra modules etc.

Link to comment
Share on other sites

  • 1 month later...
I suddenly found a post (among many many email problem posts...)

 

I edit configure.php in /catalog/includes and /catalog/admin/includes

 

At the bottom of both files, I add the following

 

ini_set("SMTP","smtp.myisp.com"); 
 ini_set("smtp_port","25");
 ini_set("sendmail_from","[email protected]");

 

(With real names/adresses)

 

Works like a charm! No need to add any extra modules etc.

 

Dude, I love you. You made my year.

Link to comment
Share on other sites

  • 8 months later...

Hi Bjorn Gronland

 

I create like ur. but I got an error

 

Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.xxx.sg" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\confirm\index.php on line 43

 

How can I solve, pls help me?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...