mail() function
Page 1 of 1
mail() function
the mail function does not work, help appreciated, the following error message is reported for the codemail($strEmail,$strSubject,$strMessage,"From:mymailid@yahoo.com");
I am using google chrome and windows XP
thanks narasimhan
-------------------------------------------------------------
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:\xampp\htdocs\xampp\learnnew\testmailaction.php on line 17
Re: mail() function
You need to have access to a mail server to use the mail() function. By default this is not the case in XAMPP.If you have access to a open SMTP server you can use SSMTP. But I know nothing about setting up a local SMTP service.
- Andreas, HTML.net
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Page 1 of 1