I'm getting "target machine actively refused" And I really think I have everything correct. I went my settings I and I'm using in my asp.net web.config file:
host="smtp.office365.com" port="587" enableSsl="true"
userName="username@mydomain.com" password="password"