Unable to send mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Yourchild
Forum Newbie
Posts: 16
Joined: Mon Jul 30, 2007 3:04 pm

Unable to send mail

Post by Yourchild »

I'm using the mail() function.

This is what I have:


SMTP = localhost
smtp_port = 25

sendmail_from = me@mycompany.com

;sendmail_path =


I'm getting this warning:

Failed to connect to the mailserver at "localhost".



I am testing this function on the local server. What do I need to change?

I am using Windows vista and I'm new to it. Is there IIS on this OS and where do I find it?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Do you have an SMTP server installed?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

moved to code.
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Post by Technocrat »

I think you will find this much easier to use for what your trying to do:
http://www.swiftmailer.org/ ;)
Post Reply