I have a project that needs to be done and our group life is on the line with this problem occurs to us. The problem is that it won't send a message to an email. In xampp localhost this phpmailer script works but after uploading to godaddy it happens to have some sort of problem. I tried various fix/solution with the forums I'd seen here in godaddy and still it won't work. For example like changing the host, port, smtp's auth and secure, and etc. Could somebody out there help me to find a fix for this even godaddy help support? I've been going at it for the past 2 weeks. Am I missing something? Do I have something to configure in cPanel? This is the script I made but it is just for a trial.
<?php
if(isset($_POST['register'])) {
try{
require ('phpmailer/PHPMailerAutoload.php');
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->Host = 'smtpout.secureserver.net';
$mail->Port = '465';
$mail->isHTML();
$mail->Username = 'msatwebsite@gmail.com';
$mail->Password = '***************';
$mail->SetFrom('no-reply@webmaster');
$mail->Subject ='MSU-MSAT Alumni Registration Confirmation';
$mail->Body = 'hello lagudas 3' ;
$mail->AddAddress('glysalagudas@gmail.com');
$mail->Send();
echo "Message Sent OK\n";
} catch (phpmailerException $e) {
echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
echo $e->getMessage();
}
}
?>