Ad Code

Go Daddy Mailer function smtp stop working

I AM USING PHP MAILER FUNCTION IN Go Daddy, IT WAS WORKING FINE.. BUT NOW ITS STOP WORKING AND SHOW AN ERROR SMTP CONNECTION FAILED()
I AM USING CODE

$mail = new PHPMailer(true);
try{
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "relay-hosting.secureserver.net"; // specify main and backup server
//$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->SMTPKeepAlive = true;
$mail->Mailer = "smtp";
$mail->SMTPDebug = 0;
$mail->SMTPSecure = "ssl";
$mail->Port = 465;
$mail->Username = "info@XYZ.in"; // SMTP username
$mail->Password = "XXXXXXXX"; // SMTP password
$mail->From = "info@XXXXX.in";
$mail->FromName = "XXXXX.in";
$mail->AddAddress("$FHFGH");
$mail->AddBCC("info@XXXXX.in");
$mail->AddReplyTo("info@XXXXX.in");
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = $subject;

Reactions

Post a Comment

0 Comments