My code looks something like the following:
MailMessage message = new MailMessage();
message.From = "mySenderEmail";
message.To = "someHotmailEmail";
message.Subject = "Test subject";
message.BodyFormat = MailFormat.Text;
message.Body = "Test body";
SmtpMail.SmtpServer = "mySmtpServer";
SmtpMail.Send(message);
Results in e-mail header:
MIME-Version: 1.0
Received: frommySmtpServer ([193.162.159.95]) by mc2-f22.hotmail.com with
Microsoft SMTPSVC(5.0.2195.6713); Wed, 15 Sep 2004 06:29:01 -0700
Received: from web24 (unknown [80.196.101.35])by mySmtpServer (Postfix) with
SMTP id 014841EC3C6for <someHotmailEmail>; Wed, 15 Sep 2004 15:27:58 +0200
(CEST)
X-Message-Info: JGTYoYF78jGs8X3R6d1uUqBJOAWXh6zM
thread-index: AcSbJ9+CKA8MpnXBRxKq4IOYkZolhw==
Thread-Topic: Test subject
Message-ID: <00****************************@wannafind.dk>
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Return-Path: mySenderEmail
X-OriginalArrivalTime: 15 Sep 2004 13:29:02.0234 (UTC)
FILETIME=[F6F297A0:01C49B27]
Maybe there is something in the message.Headers.Add( ... )
that I can add???
"Mark Rae" wrote:
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
The problem is that I want to send an e-mail with password, when a user
registers on my site - users are uknown to me at time of registration,
therefore I cannot ask users to add my sender e-mail to their 'Safe
Sender's
List'.
When I sent an e-mail from Outlook or webmail with the same sender e-mail
address - there is no problem - the problem only exists when I sent e-mail
from my asp.net code.
Can the Hotmail filter see, that e-mail comes from asp.net code and not
from
Outlook? Strange to me...!?!!
Almost certainly. There will be something in the email header which
determines this. What value are you specifying for SmtpMail.SmtpServer?