Hello guys,
I have an application on VFP 9, it uses CDO to send emails, the emails starting failing after the networking people put everything on the cloud and I believe they upgraded the email so now it's outlook 365 I believe, I get the below error now when my app tries to send email.
OLE iDispatch exception code 0 from ?: The server rejected the sender address. The server response was: 451 5.7.3 STARTTLS is required to send email (BL0PR02CA0122.namprd02.prod.outlook.com)
This is my current code:
lcSchema = "loConfig = CREATEOBJECT("CDO.Configuration")
WITH loConfig.FIELDS
.ITEM(lcSchema + "smtpserverport") = 25 && 25 or 110 or 587? (SMTP Port)
.ITEM(lcSchema + "sendusing") = 2 && 1 = Send with locally installed SMTP service 2 = Send with SMTP Srvice on Network
.ITEM(lcSchema + "smtpserver") = "smtp.office365.com'
.ITEM(lcSchema + "smtpauthenticate") = 1 && 0 = No Authentication, 1 = Authentication plain text, 2 = Authentication
.ITEM(lcSchema + "sendusername") = 'testusername' && Username
.ITEM(lcSchema + "sendpassword") = 'testpassword' && Password
.UPDATE
ENDWITH
Before it ws sending with smtpauthenticate set to 0 (no authentication) and a different smtp server but now the networking guy said to use the new smtp server and authenticate.
What do you guys suggest to check or try? I've been out of programming for a few years now but I maintain this software for this company, I would like to try to test sending emails outside of my program with these settings to make sure the networking guy put the right credentials and setup the port correctly as well, can't remember how I used to do that! lol
Thank you!
I have an application on VFP 9, it uses CDO to send emails, the emails starting failing after the networking people put everything on the cloud and I believe they upgraded the email so now it's outlook 365 I believe, I get the below error now when my app tries to send email.
OLE iDispatch exception code 0 from ?: The server rejected the sender address. The server response was: 451 5.7.3 STARTTLS is required to send email (BL0PR02CA0122.namprd02.prod.outlook.com)
This is my current code:
lcSchema = "loConfig = CREATEOBJECT("CDO.Configuration")
WITH loConfig.FIELDS
.ITEM(lcSchema + "smtpserverport") = 25 && 25 or 110 or 587? (SMTP Port)
.ITEM(lcSchema + "sendusing") = 2 && 1 = Send with locally installed SMTP service 2 = Send with SMTP Srvice on Network
.ITEM(lcSchema + "smtpserver") = "smtp.office365.com'
.ITEM(lcSchema + "smtpauthenticate") = 1 && 0 = No Authentication, 1 = Authentication plain text, 2 = Authentication
.ITEM(lcSchema + "sendusername") = 'testusername' && Username
.ITEM(lcSchema + "sendpassword") = 'testpassword' && Password
.UPDATE
ENDWITH
Before it ws sending with smtpauthenticate set to 0 (no authentication) and a different smtp server but now the networking guy said to use the new smtp server and authenticate.
What do you guys suggest to check or try? I've been out of programming for a few years now but I maintain this software for this company, I would like to try to test sending emails outside of my program with these settings to make sure the networking guy put the right credentials and setup the port correctly as well, can't remember how I used to do that! lol
Thank you!