By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,854 Members | 869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,854 IT Pros & Developers. It's quick & easy.

MailMessage, SmtpMail, and Hotmail: Why are my messages getting put in Junkmail?

P: n/a
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 Junkmail box, I do not want this to
become a problem if I ever use these classes to have email sent to someone
other than myself. What can I do to avoid having the emails marked as Junk?
Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
Nov 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hi Nathan,

I have never experienced this. Can you show us some code?

Bernie Yaeger

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
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 Junkmail box, I do not want
this to become a problem if I ever use these classes to have email sent to
someone other than myself. What can I do to avoid having the emails marked
as Junk? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

Nov 19 '05 #2

P: n/a
I do not do anything complicated in my code when creating/sending the email,
I just create a new MailMessage, set the properties, and send it. Here is my
code:

Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click

If Page.IsValid Then

Dim commentMsg As New Mail.MailMessage

commentMsg.BodyFormat = Mail.MailFormat.Html

commentMsg.From = txtEmail.Text

commentMsg.Subject = "Comments on Life With Nate"

commentMsg.To = "nj********@hotmail.com"

commentMsg.Body = "<h1>My Heading</h1>"

Mail.SmtpMail.SmtpServer = "localhost"

Mail.SmtpMail.Send(commentMsg)

End If

End Sub


When I check my JunkMail box and look at the email, it looks exactly as I
expected it to, so I know that my coding is correct. I just need to know how
to make the message not look like junkmail. Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi Nathan,

I have never experienced this. Can you show us some code?

Bernie Yaeger

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
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 Junkmail box, I do not want
this to become a problem if I ever use these classes to have email sent to
someone other than myself. What can I do to avoid having the emails marked
as Junk? Thanks.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/


Nov 19 '05 #3

P: n/a
Hello, Nathan:
On Sun, 29 May 2005 15:10:30 -0400: you wrote...

NS> I am using the MailMessage and SmtpMail classes to allow users of my
NS> site to send me email at my Hotmail email address. However, it always
NS> ends up in the Junkmail folder. Even though I check my Junkmail box, I
NS> do not want this to become a problem if I ever use these classes to
NS> have email sent to someone other than myself. What can I do to avoid
NS> having the emails marked as Junk? Thanks.

A host may junk any email based on a number of factors including content,
keywords, sender, originating IP, etc. Try sending yourself a more wordy
email avoiding anything that may sound spamish. Also, Hotmail has various
filter levels that could impact on your received email. One of those levels
is exclusive which allows only mail from senders in your addressbook to make
it into INBOX. Your hosting service could be flagged as a potential spam
source, too.

http://www.paulsadowski.com/WSH/ for some CDO stuff if you really think it's
somehow a .NET issue. But I doubt that.

Regards, Paul R. Sadowski [MVP].
Nov 19 '05 #4

P: n/a
A few options
a. Add your address to the hotmail contacts list
b. Add your domain name to the safe list

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
: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 Junkmail box, I do not want this
to
: become a problem if I ever use these classes to have email sent to someone
: other than myself. What can I do to avoid having the emails marked as
Junk?
: Thanks.
: --
: Nathan Sokalski
: nj********@hotmail.com
: http://www.nathansokalski.com/
:
:
Nov 19 '05 #5

P: n/a
I think you misunderstood my question. I know how to prevent it from going
into my JunkMail box, but when sending a MailMessage to other people
(visitors to my site), how can I prevent it from going into their JunkMail
box?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"...winston" <merlin@druid9#.com> wrote in message
news:eb**************@TK2MSFTNGP15.phx.gbl...
A few options
a. Add your address to the hotmail contacts list
b. Add your domain name to the safe list

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
: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 Junkmail box, I do not want this
to
: become a problem if I ever use these classes to have email sent to
someone
: other than myself. What can I do to avoid having the emails marked as
Junk?
: Thanks.
: --
: Nathan Sokalski
: nj********@hotmail.com
: http://www.nathansokalski.com/
:
:

Nov 19 '05 #6

P: n/a
AFAIK you can't control their mail accounts. They are required to configure
each of their accounts dependent upon their mail client and isp mail options
to ensure delivery to their Inbox.
..winston

"Nathan Sokalski" <nj********@hotmail.com> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
:I think you misunderstood my question. I know how to prevent it from going
: into my JunkMail box, but when sending a MailMessage to other people
: (visitors to my site), how can I prevent it from going into their JunkMail
: box?
: --
: Nathan Sokalski
: nj********@hotmail.com
: http://www.nathansokalski.com/
:
: "...winston" <merlin@druid9#.com> wrote in message
: news:eb**************@TK2MSFTNGP15.phx.gbl...
: >A few options
: > a. Add your address to the hotmail contacts list
: > b. Add your domain name to the safe list
: >
: > "Nathan Sokalski" <nj********@hotmail.com> wrote in message
: > news:eb**************@TK2MSFTNGP10.phx.gbl...
: > :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 Junkmail box, I do not want
this
: > to
: > : become a problem if I ever use these classes to have email sent to
: > someone
: > : other than myself. What can I do to avoid having the emails marked as
: > Junk?
: > : Thanks.
: > : --
: > : Nathan Sokalski
: > : nj********@hotmail.com
: > : http://www.nathansokalski.com/
: > :
: > :
: >
: >
:
:
Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.