Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

warning: 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

//try to set IP Address of SMTP server or the Machine Name
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host         = "IP Address or machine name";  // specify main and backup server
$mail->SMTPAuth     = true;     // turn on SMTP authentication
$mail->Username     = 'Username';                     //SMTP username
$mail->Password     = 'Password';
$mail->Port         = 25;
 
PREVIOUS NEXT
Tagged: #failed #connect #mailserver #port #verify #setting
ADD COMMENT
Topic
Name
8+9 =