prdeshpande
asked on
How to display Outlook mail signature by C# code?
Hi, I wrote below code to send a mail by C# and working very well.
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------
SmtpClient SmtpServer = new SmtpClient("someexch06.dom ain.com");
MailMessage mail = new MailMessage();
mail.From = new MailAddress("abc@domain.co m");
mail.To.Add("xyz@domain.co m");
mail.CC.Add("rtyy3kkf@doma in.com");
mail.Subject = "Documents Update";
mail.Body = "Please update your documents";
SmtpServer.Port = 25;
SmtpServer.Credentials = new System.Net.NetworkCredenti al("abc", "password");
SmtpServer.Send(mail);
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
Now I also want to display Outlook mail signature in that generated mail.
How to do?
Signature should be like below:
Sender Name | Designation | Company Name |
Address | State | Country |
Mobile | Tele Phone |
Email | www.dferttrt.com|
Whenever any user form our domain send mails from Outlook above signature come automatically. The same I want from code.
Kindly help.
--------------------------
SmtpClient SmtpServer = new SmtpClient("someexch06.dom
MailMessage mail = new MailMessage();
mail.From = new MailAddress("abc@domain.co
mail.To.Add("xyz@domain.co
mail.CC.Add("rtyy3kkf@doma
mail.Subject = "Documents Update";
mail.Body = "Please update your documents";
SmtpServer.Port = 25;
SmtpServer.Credentials = new System.Net.NetworkCredenti
SmtpServer.Send(mail);
--------------------------
Now I also want to display Outlook mail signature in that generated mail.
How to do?
Signature should be like below:
Sender Name | Designation | Company Name |
Address | State | Country |
Mobile | Tele Phone |
Email | www.dferttrt.com|
Whenever any user form our domain send mails from Outlook above signature come automatically. The same I want from code.
Kindly help.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.