clang Posted October 29, 2007 Share Posted October 29, 2007 I am trying to use the mail() function. I've got my php.ini file configured to use my current smtp host (Verizon) and I get this error: Warning: mail() [function.mail]: Failed to connect to mailserver at "outgoing.verizon.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\www\test.php on line 39 So I'm asking two things. 1) How can I make this work with out using Verizon's SMTP server? The server I am using for this website is a Windows XP machine with Apache as the webserver. 2) Once I have an alternative smtp server option, what is it I need to do to set it up properly? I need an alternative smtp server because this machine is just a development machine at my house, while the file site is in a colo and isn't connect to verizion or anyone else with a smtp server. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/75289-solved-sending-mail/ Share on other sites More sharing options...
MadTechie Posted October 30, 2007 Share Posted October 30, 2007 isn't Verizon outgoing mail server: outgoing.verizon.net ? 2. your need to setup an email with someone and use their settings Quote Link to comment https://forums.phpfreaks.com/topic/75289-solved-sending-mail/#findComment-380795 Share on other sites More sharing options...
clang Posted October 30, 2007 Author Share Posted October 30, 2007 Is there a way to setup my own email server and tell the php file to use localhost? The production machine is running Windows 2003 if that makes a difference. If there is, any suggestion to some free software would be appreciated, although paid is an option. Quote Link to comment https://forums.phpfreaks.com/topic/75289-solved-sending-mail/#findComment-380936 Share on other sites More sharing options...
clang Posted October 30, 2007 Author Share Posted October 30, 2007 I would edit my last post if I could, but I can't. For those that are interested I've found this program /www.postcastserver.com It's free, easy to install, and works on a bunch of OSs. All you have to do is install it, set it up, and change your PHP.ini file to have the mail smtp server be the ip address of that machine, localhost won't work. I just tested it out and everything worked great. Quote Link to comment https://forums.phpfreaks.com/topic/75289-solved-sending-mail/#findComment-380949 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.