I have a problem sending email using gmail smtp server
Let me explain my situation. 1 week ago I could send emails using php using smtp. Yesterday, my host moved his sites, including mine, to another server. After that I can not send emails. I tested the email scripts on my local machine and it worked fine.
I am currently using phpmailer to send emails. When an error occurred, I turned on debugging on a php script. I launched the debug permission version on the remote web server and on my local machine.
Here is the result: Local computer (running)
SMTP -> FROM SERVER:220 mx.google.com ESMTP dj6sm9229359qab.3 SMTP -> FROM SERVER: 250-mx.google.com at your service, [155.41.29.55] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 250 ENHANCEDSTATUSCODES SMTP -> FROM SERVER:250 2.1.0 OK dj6sm9229359qab.3 SMTP -> FROM SERVER:250 2.1.5 OK dj6sm9229359qab.3 SMTP -> FROM SERVER:354 Go ahead dj6sm9229359qab.3 SMTP -> FROM SERVER:250 2.0.0 OK 1350437987 dj6sm9229359qab.3 Message sent!
remote server (not working)
SMTP -> FROM SERVER:220-gds-wh1.get-sourced.net ESMTP Exim 4.80 #2 Tue, 16 Oct 2012 21:00:32 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -> FROM SERVER: 250-gds-wh1.get-sourced.net Hello gds-wh1.get-sourced.net [63.141.244.218] 250-SIZE 52428800 250-8BITMIME 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. Mailer Error: SMTP Error: Could not authenticate.
If you look carefully. On my local machine, it looks like there is a gox mx-server address in the debug information, but on the remote computer it has information about hosting providers. I donβt know if this is normal or not. I'm completely wordless
Could you help me or let me know what is wrong?
thanks, Vidh
source share