Email through Office 365

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Jul 18, 2024
Company:

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);

 
#2
People who like this:0Yes/0No
Administrator
Rating: 29
Joined: Oct 3, 2019
Company:

Hey Christos,

what problems did you have when sending an email from 1C after updating the platform version?

I would still try to deal with this problem, but not send an email through Office...

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.