Hello Guys,
I am new to x10hosting and I just got my free hosting account up yesterday.
I started with my website and when I added the phpmailer library to send mails using GMail SMTP, I get the following Error :-
My PHPMailer code :-
I have tried the above code with $mail->isHTML(false); and $mail->SMTPDebug = 0; too.
I am sure that my Username and Password are correct. I am using Google Apps Email.
I got this working on my local Server.
Please help me out !!
Thankyou
I am new to x10hosting and I just got my free hosting account up yesterday.
I started with my website and when I added the phpmailer library to send mails using GMail SMTP, I get the following Error :-
SMTP -> FROM SERVER:220-starka.x10hosting.com ESMTP Exim 4.77 #2 Sun, 13 May 2012 00:20:20 -0400 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
SMTP -> FROM SERVER: 250-starka.x10hosting.com Hello ingame.x10.mx [69.175.120.122] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP
SMTP -> ERROR: Password not accepted from server: 535 Incorrect authentication data
SMTP -> FROM SERVER:250 Reset OK
SMTP Error: Could not authenticate.
My PHPMailer code :-
PHP:
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->isHTML();
$mail->SMTPDebug = 2; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail
$mail->Host = 'smtp.gmail.com';
$mail->Port = 465;
$mail->Username = "----@-----.com";
$mail->Password = "---------";
I have tried the above code with $mail->isHTML(false); and $mail->SMTPDebug = 0; too.
I am sure that my Username and Password are correct. I am using Google Apps Email.
I got this working on my local Server.
Please help me out !!
Thankyou
Last edited: