Jump to content

Warning


BODEKA

Recommended Posts

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 82

Warning: 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 server
is it possible somehow to prevent to display this ugly warning?
Link to comment
https://forums.phpfreaks.com/topic/36129-warning/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.