Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: , +
c# Visual Studio

Is it possible to send emails with a digital signature through an exchange server ?

I'm able to send emails with EWS Managed API 2.1 (Microsoft.Exchange.WebServices.Data; reference) in c# Visual Studio.

But know I want them to have a digital signature

This is my mail coding:
C#
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.Credentials = new NetworkCredential("user", "password", "domain");
service.Url = new Uri("https://exchangeserver.com/EWS/Exchange.asmx");

EmailMessage message = new EmailMessage(service);
          
message.Subject = "subject";
message.Body = "body";
message.ToRecipients.Add(sendto@something.com);
           
message.Attachments.AddFileAttachment(c:attached);

message.SendAndSaveCopy();
Posted
Updated 19-Jan-15 8:38am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900