Link to home
Start Free TrialLog in
Avatar of prdeshpande
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.domain.com");
MailMessage mail = new MailMessage();
mail.From = new MailAddress("abc@domain.com");
mail.To.Add("xyz@domain.com");
mail.CC.Add("rtyy3kkf@domain.com");
mail.Subject = "Documents Update";
mail.Body = "Please update  your documents";
SmtpServer.Port = 25;
SmtpServer.Credentials = new System.Net.NetworkCredential("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.  
SOLUTION
Avatar of s_chilkury
s_chilkury
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial