Hi,
I am try to send mail using my application with attachment, disclaimer text (as attachment) and signature. It is working fine.
But when I use a valid credentials in smtpclient, then the From address is set to NetworkCredential objects 1st param (which is an email address).
See my code snippet.
public static string[] TrySendEmail(SecurityContext sc, MessageBase msg)
{
string messageBody = "mail body ....";
var mailMessage = new MailMessage
{
Body = messageBody,
IsBodyHtml = true,
Subject = msg.Subject,
From = new MailAddress(msg.SenderMailId) // here is the supplied email address (e.g abc@mymail.com)
...
Go to the complete details ...