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?

Options: ReplyQuote
Re: Mail settings
Posted by: technoman (---.acanac.net)
Date: November 28, 2008 06:46PM

Wamp does not come with a SMTP server

so in order for the email to work with the script you need to have outlook express to send and recieve emails and then your smtp will no longer give those errors

Options: ReplyQuote
Re: Mail settings
Posted by: technoman (---.acanac.net)
Date: November 28, 2008 06:48PM

most of the time in outlook express it uses authiation *enabled* some require it .

Options: ReplyQuote


Sorry, only registered users may post in this forum.