I have a method that basically automates the sending of an email to our company distribution list, with my company email address as the sender. This sounds pretty straightforward; however, I keep on getting an exception every time I try to execute the method. I also tried this on my personal office365 account and it works perfectly, I'm only getting the issue when I'm using my company email.

**Exception thrown: 'System.Net.Mail.SmtpException' in System.dll**

Here's my smtp setup (We use outlook).

```
SmtpClient smtp = new SmtpClient("smtp.live.com", 587);
smtp.Credentials = new NetworkCredential(fromEmail, Password);
smtp.EnableSsl = true;
smtp.Send(mail);

```

I'm thinking that I should use our own version of "smtp.live.com" if ever there is, or maybe use another port? I tried using port 25 but still the same issue.