Author | Topic: Server response: 535 Incorrect authentication data | |
---|---|---|
Jack Duijf | Server response: 535 Incorrect authentication data on Sat, 05 Nov 2016 17:59:32 +0100 Hello, I try to send a e-mail message, but it keeps on failing. The exact same settings in outlook work perfectly. What is my mistake? The SMTP username is an e-mail address of 44 characters The password is 9 characters. ::oSmtp := SmtpClient():New("smtp.somexternalserver.com",587," mydomail.nl",oLogWriter,nLogLevel) If ::oSmtp:Connect("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@mydomain.nl","PWDPWDPWD") I am 100% sure the username and password are correct. Below the log What is my mistake ? Regards, Jack Duijf Info: Socket created successfully Info: Successfully connected to smtp.somexternalserver.com, Info: Server response: 220 filter04.somexternalserver.com ESMTP Exim 4.86-108158 Sat, 05 Nov 2016 11:34:54 +0100 Info: Sending: EHLO mydomail.nl Info: Server response: 250-filter04.somexternalserver.com Hello 5ed2e81a.cm-7-3d.dynamic.ziggo.nl [94.210.232.26] 250-SIZE 250-8BITMIME 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP Info: Sending: STARTTLS Info: Server response: 220 TLS go ahead Info: Sending: EHLO mydomail.nl Info: Server response: 250-filter04.somexternalserver.com Hello 5ed2e81a.cm-7-3d.dynamic.ziggo.nl [94.210.232.26] 250-SIZE 250-8BITMIME 250-AUTH PLAIN LOGIN 250 HELP Info: Sending: AUTH PLAIN AHJlY3JlYXRpZXBhcjAxQHJlY3JlYXRpZXBhcmtkZWdyb290Z Info: Server response: 535 Incorrect authentication data | |
Andreas Gehrs-Pahl | Re: Server response: 535 Incorrect authentication data on Tue, 03 Jan 2017 14:17:34 -0500 Jack, >What is my mistake? Never post real login names and passwords in news groups, even if they are base64-encoded and didn't work for some reason. >The SMTP username is an e-mail address of 44 characters >The password is 9 characters. >If ::oSmtp:Connect("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@mydomain.nl","PWDPWDPWD") >I am 100% sure the username and password are correct. >Info: Sending: AUTH PLAIN AHJlY3JlYXRpZXBhcjAxQHJlY3JlYXRpZXBhcmtkZWdyb290Z This doesn't match the indicated connect string. What ASINET sent was: AUTH PLAIN recreatiepar01@recreatieparkdegroot Instead, using your (example) login name and password, it should have been: AUTH PLAIN aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@mydomain.nlPWDPWDPWD or actually, base64 encoded: AUTH PLAIN YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFAbXlkb21haW4ubmxQV0RQV0RQV0Q= Obviously, the login name and password that were actually sent are not only too short, they also don't contain the "@mydomain.nl" domain part, as they apparently should. You may want to check what was actually used in the :Connect() method, as the string that was actually sent is so different to what your login name and password should be, that it seems unlikely that this is an encoding or similar issue with the ASINET SMTPClient class. Hope this helps, even if this response is a little bit late. Andreas Andreas Gehrs-Pahl Absolute Software, LLC phone: (989) 723-9927 email: Andreas@AbsoluteSoftwareLLC.com web: http://www.AbsoluteSoftwareLLC.com [F]: https://www.facebook.com/AbsoluteSoftwareLLC |