Good morning,
I have a customer that uses 1C and they recently upgraded to 8.3.18.1334.
They used to be able to send emails using their ISP server but the new version of 1C would not work with that and they tried to use the Office 365 and it fails with a TLS error.
We tried to use the below test code but it still fails. The server that the SQL database is stored is 2012 R2 and TLS1.2 is registry enabled. Any ideas? Since the update they cannot send emails and the invoices are backed up.
Quote |
---|
MailMessage = New InternetMailMessage; MailMessage.To.Add("recepient@domain.com"); MailMessage.From.Address = "sender@domain.com"; MailMessage.Subject = "test"; text="Gia na doumai an doulevi"; MailMessage.Texts.Add(text); Profile = New InternetMailProfile; Profile.SMTPPassword="outlook application password"; Profile.SMTPPort=587; Profile.SMTPSecureAuthenticationOnly=true; Profile.SMTPServerAddress="smtp.office365.com"; Profile.SMTPUser="sender@domain.com"; //Profile.SMTPUseSSL=true; Profile.SMTPAuthentication = SMTPAuthenticationMode.Default; Mail = New InternetMail; Mail.Logon(Profile); Mail.Send(MailMessage); |