alibak Posted December 22, 2003 Share Posted December 22, 2003 Hi, I have a the ms2.2 setup in my windows 2003 server with php4 and mysql. during the setup i decided to choose smpt. Now, the emails are not being sent and I'm getting errors when adding user accounts or trying to send an email to user... this is the following error: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [email protected] in c:\SP\artwww\shops\catalog\admin\includes\classes\email.php on line 500 Warning: Cannot modify header information - headers already sent by (output started at c:\SP\artwww\shops\catalog\admin\includes\classes\email.php:500) in c:\SP\artwww\shops\catalog\admin\includes\functions\general.php on line 18 So, I checked the mail.php under the includes and email.php under the admin/includes/class and I also checked the configure.php... But I saw nothing about Smpt or sendmail there and my setup of it!!! So please help. Thanks very much. Ali Link to comment Share on other sites More sharing options...
Guest Posted December 22, 2003 Share Posted December 22, 2003 with the smtp server of 550 unable to relay, it requires smtp authentication to enable sending email through the mail server. what are you using for a mail server? are you using the w2k3 server at home and then trying to go through your email account via an isp? wont work that way if you are Link to comment Share on other sites More sharing options...
alibak Posted December 22, 2003 Author Share Posted December 22, 2003 Sorry! So the continuation of my last post... So should I be changing the smpt in php.ini to my provider(DSL)'s smpt or just leave it as 'localhost' if the server is my own.... but I'm using DSL? Thanks... Link to comment Share on other sites More sharing options...
alibak Posted December 22, 2003 Author Share Posted December 22, 2003 to answer Mibble's (John) question here... I have smpt of my DSL provider (smpt.dslprovider.net ... for example)... and it works for my other programs (ASP stuff)in the site! But I have not yet tried it for PHP stuff.... So should I be reconfiguring php.ini in where it says smpt? and placing the smpt.dslprovider.net thing there rather than localhost? if I used sendmail rather than smpt... would it work? sendmail is part of php right? So where are the setup stuff for all this in oscommerce!! thanks Ali Link to comment Share on other sites More sharing options...
alibak Posted December 22, 2003 Author Share Posted December 22, 2003 well, I just changed to sendmail option in the program for email sending and I got the same exact error as the smpt option.... Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in c:\SP\artwww\shop\catalog\admin\includes\classes\email.php on line 502 Warning: Cannot modify header information - headers already sent by (output started at c:\SP\artwww\shop\catalog\admin\includes\classes\email.php:502) in c:\SP\artwww\shop\catalog\admin\includes\functions\general.php on line 18 Can someone help me and let me know what I should do? Do I need to change the smpt: localhost in php.ini to something else? What do I need to configure? Thanks Ali Link to comment Share on other sites More sharing options...
beardeddone Posted December 22, 2003 Share Posted December 22, 2003 to answer Mibble's (John) question here... I have smpt of my DSL provider (smpt.dslprovider.net ... for example)... and it works for my other programs (ASP stuff)in the site! But I have not yet tried it for PHP stuff.... So should I be reconfiguring php.ini in where it says smpt? and placing the smpt.dslprovider.net thing there rather than localhost? if I used sendmail rather than smpt... would it work? sendmail is part of php right? So where are the setup stuff for all this in oscommerce!! thanks Ali If you choose to use sendmail (which works the best) and is not part of php, you would put in your php.ini file something like the following [mail function] SMTP = localhost ; sendmail_from = [email protected] or net ; sendmail_path = c:\path\to your\sendmail.exe -t ; Do a Google search for sendmail for windows, you'll find it. This has always worked great for running a server from a windows machine and sending e-mail using OSC or any other php program. Don't forget to set the sendmail.ini file to reflect your needs. Best Regards Link to comment Share on other sites More sharing options...
alibak Posted December 22, 2003 Author Share Posted December 22, 2003 Hi! I just went ahead to every php.ini in my whole computer (in windows file, apache, bigapache, winnt, etc).. and I changed every smpt: local host TO smpt: smpt.mydslprovider.net AND every sendmail: [email protected] TO sendmail: [email protected] (my site's name).... and I know that smpt.mydslprovider'sname.net works based on the other ASP programs in my windows server!!! Now I'm still getting errors (having selected smpt as mailing option) saying that can't connect to this smpt at port 25 and go to my php.ini and set the port right.... but smpt does work with other ASP programs, and that there's no port indicated in php.ini!! and that 25 is the correct one to begin with!! NOW I'm about to download a sendmail program... I have no clue how to set that up!! Oh by the way... the pathname to sendmail in php.ini was mentioned specifically in php.ini that it needs to be specified only in UNIX machines!! and mine is a windows server! PLEASE help! I would appreciate it. My email is [email protected] if anyone wishes to help me in more detail. thanks so much. Ali Link to comment Share on other sites More sharing options...
alibak Posted December 23, 2003 Author Share Posted December 23, 2003 hi, I'm still having such problem!... I attempted to install sendmail (other than what is in PHP4) and it's not working... Is there not sendmail installed inside PHP4? But I think the problem is not just the sendmail, since it's not working on smpt either!! it's not picking up the regular smpt of the localhost while in ASP programs that I have installed smpt works fine. Could you please help. thanks Link to comment Share on other sites More sharing options...
sourceone Posted February 25, 2004 Share Posted February 25, 2004 Go to your php.ini and open it up. should be in you windows/dir. Find this line: [mail function] <---------- HERE ; For Win32 only. SMTP = SMTP ; for Win32 only sendmail_from= [email protected] ; for Win32 only <--ignore mine here Do the following [mail function] ; For Win32 only. SMTP = PUT-YOUR-SMTP-SERVER-HERE ; for Win32 only <-------change sendmail_from= AND YOUR EMAIL ADDRESS HERE; for Win32 only<------change hope it works for you. it did for me Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.