Sending Emails through Office 365

I’ve been successfully sending emails through gmail for years. Now I’ve been asked to send emails through an Office365 account. I looked up the settings online and changed the code but it doesn’t seem to work. Here is the code I’m using.

SMTPSecureSocket.Address = "" SMTPSecureSocket.Username = email_address SMTPSecureSocket.Password = password SMTPSecureSocket.Port = 587 SMTPSecureSocket.ConnectionType = SMTPSecureSocket.SSLv23 SMTPSecureSocket.Secure = True SMTPSecureSocket.Messages.Append(email_content) SMTPSecureSocket.SendMail

error messages?
TLSv1.2 instead of SSLv23?

Did you try CURL classes in MBS Plugin? They may give you a detailed log.

Thanks. That worked.

Or consider Chilkat plugin.

I believe that you need to add a static IP address to O365 hosted before you can send emails through that service.