vali_cd Posted January 14, 2007 Share Posted January 14, 2007 Hello I have recently downloaded osCommerce, but before i can make this go Live, i have installed it on my computer at home, where i run Apache 2.0.59, PHP 5.2.0 + PECL, MySQL 5.0.27. For installing these i used WAMP5, which basically installs all of them. The problem occurs when i try to create an account or when i do whatever action that implies sending an email. The error i get is: "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 E:\www\vmcStore\catalog\includes\classes\email.php on line 520 Warning: Cannot modify header information - headers already sent by (output started at E:\www\vmcStore\catalog\includes\classes\email.php:520) in E:\www\vmcStore\catalog\includes\functions\general.php on line 33" I have tried to set up the smtp_port in php.ini, but could not find this in the file. What should i do in this case? Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2007 Share Posted January 14, 2007 are you running an SMTP mail server or just using sendmail? Link to comment Share on other sites More sharing options...
vali_cd Posted January 14, 2007 Author Share Posted January 14, 2007 are you running an SMTP mail server or just using sendmail? i don't have any smtp server installed, i am just using the sendmail Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2007 Share Posted January 14, 2007 check your mail settings in the admin area and make sure you are set for sendmail and not smtp Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2007 Share Posted January 14, 2007 Configuration> E-Mail Options > E-Mail Transport Method Link to comment Share on other sites More sharing options...
vali_cd Posted January 14, 2007 Author Share Posted January 14, 2007 Configuration> E-Mail Options > E-Mail Transport Method i tried this, the value for transport method is "sendmail" Link to comment Share on other sites More sharing options...
Guest Posted January 14, 2007 Share Posted January 14, 2007 from this line: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\www\vmcStore\catalog\includes\classes\email.php on line 520 It looks as though its trying to send mail though SMTP I would search those pages it is crying about and see if there is something in there that will lead you to a solution. Unfortunately I dont know all the ins and out of this program, I usually end up searching down problems just like that. Look in teh page its telling you and the line it states and see whats there. is it a command to sent via SMTP or something about your mail server? This is the best I can do, maybe someone else may have some ideas. Sorry! Link to comment Share on other sites More sharing options...
vali_cd Posted January 14, 2007 Author Share Posted January 14, 2007 from this line: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\www\vmcStore\catalog\includes\classes\email.php on line 520 It looks as though its trying to send mail though SMTP I would search those pages it is crying about and see if there is something in there that will lead you to a solution. Unfortunately I dont know all the ins and out of this program, I usually end up searching down problems just like that. Look in teh page its telling you and the line it states and see whats there. is it a command to sent via SMTP or something about your mail server? This is the best I can do, maybe someone else may have some ideas. Sorry! First of all i appreciate your fast answers and i am really glad that there are people here that want to help. I tried to do the following: - i set up the transfer method to smtp and installed a smtp server. after i tried this way, the smtp server could not send the message to a yahoo existing account(my account). Maybe this smtp server is not wuite good, i don't know. - i left the smtp server opened and changed the email transfer method to send mail. What i sow was that it tried to access the smtp server and still got the same error, because the smtp server could not send - i created a free tripod account but i could not upload the content of the oscommence archive to that account. There are some files like .htaccess and folders that i cannot create under the tripod account. Could anybody tell me a free php-mysq host with ftp access where i can install oscommence and get familiarized to it before start creating my shop and put it live? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.