configuring email using office365


https://forum.kartris.com/Topic6434.aspx
Print Topic | Close Window

By MaurizioPGH - Fri 15 Apr 2016
Has anybody had any luck using a 365 email account? My emails don't go through and I'm not finding much online in the way of examples. Here are my config settings. Thank you!

general.email.enablehtml y
general.email.mailserver smtp.office365.com
general.email.method on
general.email.smtpauthpassword <<I have one>>
general.email.smtpauthusername info@<<mydomain>>.net
general.email.smtpportnumber 587
general.email.spoofcontactmail y
By Paul - Fri 15 Apr 2016
Is there a particular reason you need to send out through the SMTP of office365? Generally on a web site you would send out mail from the local server, or network's SMTP.
By MaurizioPGH - Fri 15 Apr 2016
Thank you very much for the reply.

I don't believe that our IT department's security policies allow for a mail server on the same server where the site is hosted. I may be wrong, but I believe using an external server is preferred if possible.

Thanks again.
By Tiggywiggler - Sun 1 May 2016
Hello,

Have you tried enabling SSL (TLS) as Office365 requires this for email connections?

it's part of the SmtpClient object (SmtpClient.EnableSsl)