YAFLogo

m_akmal70@hotmail.com
14 years ago
Hi,

I have developed asp.net c# application for sending mail using System.Net.Mail. Every thing is working fine. Now I want to set sent date which diplay in outlook with from address. In my case when I send mail from my developed application. In outlook current date is displayed, but I want to set sent date in my code, any date, how is it possible

Outlook:

Wateen Lab Admin [mohammad.hafeez@wateen.com]

Sent: Mon 2/28/2011 3:18 PM

Muhammad Akmal/IT/Lahore

Here is my code

MailMessage mailMsg = new MailMessage();

mailMsg.To.Add(txtEmail.Text);

MailAddress mailAddress = new MailAddress("mohammad.hafeez@wateen.com","Wateen Lab Admin");

mailMsg.From = mailAddress;

mailMsg.Subject = "Wateen LAB Usage";

string Message = "……………………………..";

mailMsg.IsBodyHtml = true;

mailMsg.Body = Message;

SmtpClient smtpClient = new SmtpClient("172.26.143.88");

smtpClient.Send(mailMsg);

but I could not find any object for seting “Sent date”

kindly help me.

Thnaks and regards,

Muhammad Akmal

Sponsor