oop - error send email with phpmailer in server domain but succed in localhost -


I have an extension error with this problem,

SMTP - & gt; From Server: 220- Sarwar.modialindo.com ESMTP Exim 4.77 # 2 Wednesday, 11 July 2012 10:57:22 +0700 220-We authorize the use of this system for the transportation of unwanted, 220 and / or bulk e-mails. Do not do it. SMTP - & gt; From server: 250-server.modulindo.com Hello Mail.Modilindo.com [202.67.9.42] 250-size 52428800 250-piping 250-at-plane log 250 help SMTP - & gt; Error: Password not accepted by server: 535 incorrect authentication data SMTP - & gt; From server: 250 reset OK

Please help me !?

I have a problem with phpmailer. I send emails with phpmailer in the local host, is successful, but when I upload it to my server domain, there was an error that was an error. .

SMTP Error: Could not authenticate Mailer error: SMTP error: Could not authenticate.

This is my script.

  ... $ mail = new PHPMailer (); $ Mail & gt; IsSMTP (); $ Mail- & gt; Mailer = "SMTP"; $ Mail- & gt; Host = "SSL: //smtp.gmail.com"; $ Mail- & gt; Port = 465; $ Mail- & gt; SMTPAuth = true; $ Mail- & gt; Username = "wasis85@gmail.com"; $ Mail- & gt; Password = "password"; $ Mail- & gt; From = "wasis85@gmail.com"; $ Mail- & gt; Sainam = "vasis lukutto"; $ Mail & gt; AddAddress ($ EMA [$ ari_no], "wasis"); $ Mail & gt; AddCC ("wasisl85@yahoo.com"); $ Mail- & gt; AddReplyTo ("wasisl85@yahoo.com", "Vasa Lukto"); $ Mail-> WordWrap = 50; $ Mail & gt; IsHTML (true); $ Mail- & gt; Subject = "penolacon data bplpse"; $ Mail- & gt; Body = "allan de tolak"; $ Mail- & gt; AltBody = "This search is supported by Google.com"; I solved the same problem with comment (or cancellation) on this line << Code>   

// $ mail- & gt; ISSMTP ();

Because I had a single error from some servers: SMTP error: could not be authenticated (this is also wrong password ... etc)

Comments