Hi
I don't know if this is the right place to ask my question or not.
but i hope that anyone could help me.
ok..my problem is:
i have a pc running windowsXP_SP2 and i use PHP 4.3.11 and utilize
the Apache server 3.33.when i try to use the mail() function i get error like this:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
i don't know what i should do in the php.ini to make it run.
please anyone could help me.
Thanks in Advance
error when sending email
Moderator: General Moderators
-
alexmaster_2004
- Forum Commoner
- Posts: 35
- Joined: Wed Sep 14, 2005 8:44 am
- trukfixer
- Forum Contributor
- Posts: 174
- Joined: Fri May 21, 2004 3:14 pm
- Location: Miami, Florida, USA
I think you need to specify a mail server and user/pass for same - windows , I believe, does not have any native "sendmail" - so you need to set up a mail server on windows, or connect to a remote SMTP server .. I might recommend instead to use the phpmailer class http://sourceforge.net/projects/phpmailer/
Bri!
Bri!
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
Windows XP Pro has a SMTP server that's part of IIS:
http://www.webwizguide.com/asp/tutorial ... XP_pro.asp
Might also use something like something like Richard Heyes SMTP Class:
http://www.phpclasses.org/browse/package/346.html
http://www.webwizguide.com/asp/tutorial ... XP_pro.asp
Might also use something like something like Richard Heyes SMTP Class:
http://www.phpclasses.org/browse/package/346.html
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK