Mail settings
Posted by:
Topkat
(---.bb.sky.com)
Date: November 28, 2008 03:38AM
I have a PHP file which sends an email to my email address once submitted . When I submit it, I get 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 C:\wamp\www\c4\processfeedback.php on line 20
I searched google and read that it could be my SMTP settings are wrong. So I changed the default "mail function" settings in the php.ini to match my ISP smtp settings;
[mail function]
; For Win32 only.
SMTP = smtp.tools.sky.com
smtp_port = 465
When I try to send it with these settings, the form page just loads for ever and doesn't do anything. :-\
Any idea how I can get the mail service to work on my PC? Can it work without using the smtp settings from my ISP?