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("sender@server.com");
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = fromAddress;
message.To.Add("receiver@theirServer.com");
message.CC.Add("receiver2@theirServer.com");
message.Subject = "theSubject";
message.Body = "TheBody";
SmtpClient smtpClient = new SmtpClient("zzz.server.xxx");
smtpClient.Credentials = new NetworkCredential("sender@server.com", "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.