I have been roaming forums and not finding any answer to my question. all of the solution (and question) is about using Microsoft.Office.Interop.Outlook; for some reason I am not allowed to use any office.interop.
I even tried:
MailAddress fromAddress = new MailAddress("[email protected]"); System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = fromAddress; message.To.Add("[email protected]"); message.CC.Add("[email protected]"); message.Subject = "theSubject"; message.Body = "TheBody"; SmtpClient smtpClient = new SmtpClient("zzz.server.xxx"); smtpClient.Credentials = new NetworkCredential("[email protected]", "password"); smtpClient.Send(message); the code fail to authenticate the credential, even after I hard-coded the password, but I feel that there must be a better way.
office.interop