473,473 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SmtpMail - Hotmail Junk e-mail

When I sent e-mail from within my asp.net application to Hotmail adresses.
The e-mail always end up in Junk e-mail. I sent the e-mail as plain/text.
Does anyone know how to solve this?
Nov 18 '05 #1
17 3751
okay here's a bit of background on how Junk Mail works on Hotmail (have been
using it since the day that feature was added)

For a mail to reach your inbox, the sender has to be marked and added to
'Safe Sender's List'
or the email should be in your contacts like.
there is a 3rd option and that is using custom filters.

But the problem is at the users end and not the senders end. There is not
code tweaks that will help you.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
When I sent e-mail from within my asp.net application to Hotmail adresses.
The e-mail always end up in Junk e-mail. I sent the e-mail as plain/text.
Does anyone know how to solve this?

Nov 18 '05 #2
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eO**************@tk2msftngp13.phx.gbl...
For a mail to reach your inbox, the sender has to be marked and added to
'Safe Sender's List'


Only if the recipient has selected "Exclusive" filtering. There are three
levels of junk email filtering:

Low - obvious junk e-mail is caught.
Enhanced - most junk e-mail is caught.
Exclusive - you will only receive e-mail from addresses appearing in your
Contacts, service
announcements from Hotmail, and messages you have consented to receive from
MSN.
Nov 18 '05 #3
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...!?!!
"Hermit Dave" wrote:
okay here's a bit of background on how Junk Mail works on Hotmail (have been
using it since the day that feature was added)

For a mail to reach your inbox, the sender has to be marked and added to
'Safe Sender's List'
or the email should be in your contacts like.
there is a 3rd option and that is using custom filters.

But the problem is at the users end and not the senders end. There is not
code tweaks that will help you.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
When I sent e-mail from within my asp.net application to Hotmail adresses.
The e-mail always end up in Junk e-mail. I sent the e-mail as plain/text.
Does anyone know how to solve this?


Nov 18 '05 #4
my bad.. i only had to set it up once and i set it to exclusive.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eO**************@tk2msftngp13.phx.gbl...
For a mail to reach your inbox, the sender has to be marked and added to
'Safe Sender's List'


Only if the recipient has selected "Exclusive" filtering. There are three
levels of junk email filtering:

Low - obvious junk e-mail is caught.
Enhanced - most junk e-mail is caught.
Exclusive - you will only receive e-mail from addresses appearing in your
Contacts, service
announcements from Hotmail, and messages you have consented to receive
from MSN.

Nov 18 '05 #5
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:O5****************@TK2MSFTNGP09.phx.gbl...
my bad.. i only had to set it up once and i set it to exclusive.


Wow! Think of all the genuine email you've missed!
Nov 18 '05 #6
"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?
Nov 18 '05 #7
are you using localmachine right now to do the dev and testing ?
if so are you using Relay option to relay the mail to your ISP ?
if that is the case, relaying is the problem. a lot of email providers use
filters to set this sort of mail (at times used by spammer) on the side.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"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...!?!!
"Hermit Dave" wrote:
okay here's a bit of background on how Junk Mail works on Hotmail (have
been
using it since the day that feature was added)

For a mail to reach your inbox, the sender has to be marked and added to
'Safe Sender's List'
or the email should be in your contacts like.
there is a 3rd option and that is using custom filters.

But the problem is at the users end and not the senders end. There is not
code tweaks that will help you.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
> When I sent e-mail from within my asp.net application to Hotmail
> adresses.
> The e-mail always end up in Junk e-mail. I sent the e-mail as
> plain/text.
> Does anyone know how to solve this?


Nov 18 '05 #8
well i check my junk mail more than my inbox lol

every time i add the person as a contact they stop mailing me... ironic..

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:ei****************@TK2MSFTNGP10.phx.gbl...
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:O5****************@TK2MSFTNGP09.phx.gbl...
my bad.. i only had to set it up once and i set it to exclusive.


Wow! Think of all the genuine email you've missed!

Nov 18 '05 #9
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?

Nov 18 '05 #10
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?

Nov 18 '05 #11
I'm relatively certain that hotmail checks to see if the email came from its
own domain. If you use example.net as your relay and all of your email comes
from jo*@myhost.com it will think that you are using an open relay somewhere
to hide your real identity.
Nov 18 '05 #12
No I already have the code in production - and it works great with other
e-mail domains.

"Hermit Dave" wrote:
are you using localmachine right now to do the dev and testing ?
if so are you using Relay option to relay the mail to your ISP ?
if that is the case, relaying is the problem. a lot of email providers use
filters to set this sort of mail (at times used by spammer) on the side.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"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...!?!!
"Hermit Dave" wrote:
okay here's a bit of background on how Junk Mail works on Hotmail (have
been
using it since the day that feature was added)

For a mail to reach your inbox, the sender has to be marked and added to
'Safe Sender's List'
or the email should be in your contacts like.
there is a 3rd option and that is using custom filters.

But the problem is at the users end and not the senders end. There is not
code tweaks that will help you.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
> When I sent e-mail from within my asp.net application to Hotmail
> adresses.
> The e-mail always end up in Junk e-mail. I sent the e-mail as
> plain/text.
> Does anyone know how to solve this?


Nov 18 '05 #13
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
My code looks something like the following: SmtpMail.SmtpServer = "mySmtpServer";


Yes, but what is the *actual* value? I have a feeling I've figured out the
problem...

Let's say your ISP is somefictitiousisp.com. In Outlook, you've probably set
up your email account to use smtp.somefictitiousisp.com as your outgoing
mail server so that you're sending emails via your ISP's smtp server' smtp
queue. If you then specify:

SmtpMail.SmtpServer = "smtp.somefictitiousisp.com";

HoTMaiL sees this as OK.

However, if you specify a different SMTP queue, HoTMaiL will interpret this
as relaying, and will consider that it's spam. If you have a HoTMaiL account
yourself, you can check this out - you'll probably see headers similar to
the following:

X-RBL-Warning: NOPOSTMASTER: Not supporting po********@hotmail.com
X-RBL-Warning: ROUTING: This E-mail was routed in a poor manner consistent
with spam [2000010f].
X-Declude-Sender: x@hotmail.com [x.x.x.x] <-- real details removed
X-Note: This E-mail was scanned by for spam.
X-Spam-Tests-Failed: NOPOSTMASTER, ROUTING
X-RCPT-TO: <x@x.co.uk> <-- real details removed
Status: U
X-UIDL: 386775229
Nov 18 '05 #14
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
I have got the name of the SmtpServer to use in my code from my webhotel
parner - and I don't know if that smtp server name is the same as their
ISP...

Is that what you mean?
Yes. What is your outgoing mail server set to in your desktop email client
(i.e. Outlook etc)?
If the smtp server name I have got from my webhotel partner to use in my
code is different from my webhotel partner's ISP - could that be the
problem?

If the names differ - is that what you mean when you say that Hotmail will
interpret that as relaying?


Almost certainly.
Nov 18 '05 #15
I now have verified that the smtp server name I have got from my webhotel
partner to use in my code is the exact same as my webhotel partner's ISP -
SIGH! So that was not the problem either.

In the meantime I have created a small test win-application that also sents
e-mail. I run the application on my local computer using the smtp server of
my ISP - and are having no problem in sending e-mail - exept again the
e-mails ends up in peoples junk mail - if I sent to a Hotmail account.

Have anyone got any idea why?
"Mark Rae" wrote:
"LACH" <LA**@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
I have got the name of the SmtpServer to use in my code from my webhotel
parner - and I don't know if that smtp server name is the same as their
ISP...

Is that what you mean?


Yes. What is your outgoing mail server set to in your desktop email client
(i.e. Outlook etc)?
If the smtp server name I have got from my webhotel partner to use in my
code is different from my webhotel partner's ISP - could that be the
problem?

If the names differ - is that what you mean when you say that Hotmail will
interpret that as relaying?


Almost certainly.

Nov 18 '05 #16
I have solved the problem - thanks for all your help.
"LACH" wrote:
When I sent e-mail from within my asp.net application to Hotmail adresses.
The e-mail always end up in Junk e-mail. I sent the e-mail as plain/text.
Does anyone know how to solve this?

Nov 18 '05 #17
We're having a similar problem with our emails going into the Junk
folder of hotmail. What did you do to solve the problem?

Thanks,
Matt

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Xerox | last post by:
The SmtpMail class has a static property to set the server and a static method to send an email. But if its static, how can it work in a multithreaded environment? Surely one would want to create...
2
by: gregfocker | last post by:
Has anyone tried using SMTPMail on a Windows XP Pro machine? The sys. reqs. on their site only says W2K (and prior). I've successfully registered SASMTP.dll, and simply trying to instantiate it...
2
by: Mark Sanders | last post by:
Configuration: - ASP.NET web service running on a Windows 2000 server. - Exchange server running on a Windows 2000 server. - The web server and the exchange server are on different computers in...
3
by: Jimmy | last post by:
I am trying to send an attachment using SmtpMail. I am able to send an Excel or text file, but when I try to send a pdf file, it throws an exception: could not access CDO.Message object. The file...
3
by: JJBW | last post by:
Hi I am having a bit of a problem with SmtpMail. I have a bit of code that should send an email but when it is executed no email turns up. MailMessage mmNotify = new MailMessage(); ...
6
by: JIM.H. | last post by:
Hello, I am using SmtpMail.Send() and I get the following message The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for myMail@hotmail.com...
2
by: Wayne Wengert | last post by:
I have an aspx page in which I step through emails from a SQL Server table and snd each a custom email message. The emails in that table are all valid formats. When I run the page I immediately get...
6
by: Nathan Sokalski | last post by:
I am using the MailMessage and SmtpMail classes to allow users of my site to send me email at my Hotmail email address. However, it always ends up in the Junkmail folder. Even though I check my...
3
by: aslantifosi | last post by:
hi all, My question is about that i use a smpt server which is running on a different machine from my webserver machine. And i can authenticate with a user and password. I use SmtpMail class. i...
14
by: HB | last post by:
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.