nicotinell Posted November 9, 2009 Share Posted November 9, 2009 Hi all, Firstly, my question is not a pure coding question but I couldn't find a better forum to post it. So I posted it here. Here is my problem: I have my own Windows 2003 Server with IIS 6. But there is no mail server installed on it. In order to practice my skills on PHP, I installed PHP on my server, everything is fine. I tried to configure PHP.ini for sending mails through smtp.gmail.com. The changes I made in PHP.ini is here: [mail function] ; For Win32 only. SMTP = ssl://smtp.gmail.com smtp_port = 465 When I try to run a simple mailer script, it genereates the following error: 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 D:\Web Sites\mytestsite\mail.php on line 6 The weird thing is, although I changed it, the script still tries to connect to mailserver at "localhost" port 25. Does somebody have any idea about this? Link to comment https://forums.phpfreaks.com/topic/180833-configuring-php-sendmail/ Share on other sites More sharing options...
ram4nd Posted November 9, 2009 Share Posted November 9, 2009 This is PHP Coding help forum. Link to comment https://forums.phpfreaks.com/topic/180833-configuring-php-sendmail/#findComment-954005 Share on other sites More sharing options...
nicotinell Posted November 9, 2009 Author Share Posted November 9, 2009 Okay, can you suggest a better place to ask? Link to comment https://forums.phpfreaks.com/topic/180833-configuring-php-sendmail/#findComment-954006 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.