changing the date of outgoing System.Web.Mail.MailMessage Email

G

gh0st54

Hi

i'm looking for how to change the date of out going messages

i tried this but it doesn't seems to work

static public bool SendEmail(string To, string From, string Subject,
string Body, System.Web.Mail.MailFormat Format) {
bool bReturn = false;

System.Web.Mail.MailMessage Mailer = new
System.Web.Mail.MailMessage();
Mailer.From = From;
Mailer.To = To;
Mailer.Subject = Subject;
Mailer.Body = Body;
Mailer.Headers["Date"] = functions.GetNow();
Mailer.BodyFormat = Format;

try{
System.Web.Mail.SmtpMail.Send(Mailer);
bReturn=true;
}
catch(System.Exception ex){
// do nothing;
bReturn = false;
}

return bReturn;

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top