Jump to content

[SOLVED] Sending mail


clang

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/75289-solved-sending-mail/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/75289-solved-sending-mail/#findComment-380949
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.