|
| [WD/WB 21] - Sending Email - SOLVED |
| Iniciado por guest, 09,jun. 2016 14:40 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 09,junio 2016 - 14:40 |
[UPDATE] - Solved this - there was a space at the end of the password ! Thanks for reading.
Hi All
I am trying to send an email from WebDev or WinDev. I have confirmed all settings and have it working in Visual FoxPro using a similar set of code lines as WinDev. However, I keep getting a failure on SMTP Start Sessions saying bad user id or password. However, both are definitely OK. I have also checked the port - which is default 25. Here is my code:
MySession is EmailSMTPSession
MySession.ServerAddress = "smtp.mydomain.com"
MySession.Name = "sending_account_username@mydomain.com" MySession.Password = "sending_account_password "
IF EmailStartSession( MySession ) = False THEN // Always fails here <=
ToastDisplay( "Unable to connect to the SMTP server." , ErrorInfo() )
RETURN
END
It always fails on the line indicated. Virtually the exact same code but in VFP works fine. Firewall popups are told to allow. I have tried in WinDev and WebDev. What am I missing?
TIA |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,junio 2016 - 02:10 |
Quote JP
[UPDATE] - Solved this - there was a space at the end of the password ! Thanks for reading.
Sounds like a security feature. If your password ever got out, who would ever think of adding a space at the end? |
| |
| |
| | | |
|
| | | | |
| | |
|