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;
}
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;
}