PHPMailer could not connect to GMail SMTP

Status
Not open for further replies.

udfdat42

New Member
Messages
10
Reaction score
0
Points
0
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 :-

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:

jimsy7777

New Member
Messages
27
Reaction score
0
Points
0
have you read the status update or the announcement yet?

It says all mails (both local and remote) problems will be fixed(hopefully) by next week

It affects all free servers
 

udfdat42

New Member
Messages
10
Reaction score
0
Points
0
Where to read the status??

I am new to this hosting and didn't know this. If that's the case then alright.

Thank you for the reply
 
Last edited:
Status
Not open for further replies.
Top