NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: rayb12 on June 22, 2015, 01:55:16 PM
-
Hi All,
I have a Web Server app that sends an email when a user presses a button. This function has been working great until I upgraded from NT6 to NT8.52. I now get an error message 530 Authentication error.
Nothing else that I know of has changed, I am populating the AuthUser and AuthPassword fields.
For what it is worth I tried the NetDemo application and it works with the same SMTP settings! However, I also tried the WebServer Example 11 (Send Email from Web Server) and it gives me the same 530 error.
Any help is greatly appreciated!
-
Hi Ray,
The template now has options to set the authUser and AuthPassword properties. These are likely overriding the values you are setting in code.
If you look at your code you'll see you're doing something like;
ThisSendEmail.AuthUser = 'abc'
ThisSendEmail.AuthPassword = '123'
But a few lines lower down the template is generating something like
ThisSendEmail.AuthUser = EmailUser
ThisSendEmail.AuthPassword = EmailPassword
see http://www.capesoft.com/accessories/NetTalkUserGroup.htm #44, around the 0:24 mark.
Cheers
Bruce
-
Hi Bruce,
That worked! Thank you so much for all of your help!
Ray