jeudi 11 décembre 2014

Send the mail using timer job in draft folder



Have SharePoint Custom timer job using C#, It's already created and working perfect, current process - e-mails are going to user's Inbox. But I want like E-mail should go to Draft Folder of receiver.


To send e-mail Using code like below -



smtpClient = new SmtpClient();
smtpClient.Host = web.Site.WebApplication.OutboundMailServiceInstance.Server.Address;
MailMessage mailMessage = new MailMessage("email address", toEmail, subject, body);
mailMessage.IsBodyHtml = true;
smtpClient.Send(mailMessage);


May be we can use something to save e-mail at Receiver Draft folder rather using send option. These may be few lines of code change if you already did this type of task








0 commentaires:

Enregistrer un commentaire