BODEKA Posted January 29, 2007 Share Posted January 29, 2007 Hi there,I use mail() function mail($email,$subject,$body,$from);I do not have a correct setup on my Windows machine so I get this:--------------------------------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\domain\include\mailer.php on line 82Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\domain\include\mailer.php:82) in C:\wamp\www\domain\include\processFns\fn_procRegister.php on line 24------------------It works just fine on server.I was just wandering in case there is a problem with SMTP on my serveris it possible somehow to prevent to display this ugly warning? Link to comment https://forums.phpfreaks.com/topic/36129-warning/ Share on other sites More sharing options...
matto Posted January 29, 2007 Share Posted January 29, 2007 You will need to edit your php.ini file[code]SMTP = smtp.your_isp.com[/code]don't forget to restart you webserver so the changes take effect. ;) Link to comment https://forums.phpfreaks.com/topic/36129-warning/#findComment-171563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.