Home All Groups Group Topic Archive Search About

.Net Mail and hotmail question

Author
23 May 2006 5:56 PM
Bob
I have a bit of code in a functions that sends a .Net mail message
asynchronously.
emailClient.SendAsync(EmailMessage, 0)


I don't really want to wait for the return status of the messages, so this
normally tests out fine BUT

When testing it I use my localhost as the smtp server. I can send an e-mail
to my normal e-mail address and I get it with my outlook but it won't send
an e-mail to my hotmail address. I won't see it thru my outlook hotmail
connection, nor will I see it in my internet browser whenn I connect to my
hotmail account.
Yet when I test my Outlook program, I can send an e-mail to my hotmail
e-mail address and I will see it in my Outlook hotmail account or in my
Internet browser page for my hotmail.

Why does this not work with the .Net  emailclient.send(Emailmessage) nor
with emailClient.SendAsync(EmailMessage, 0), it looks like trying to send
via my localhost smtp server is being blocked by hotmail servers.

Any help would be appreciated.

Bob

Author
25 May 2006 5:14 AM
Nathan Sokalski
Did you check Hotmail's Junkmail folder? If I remember correctly, when
sending an email message using ASP.NET on localhost, Hotmail views it as
Junk (probably because not many people have a certificate on their localhost
server). I would first see if it does get sent to Hotmail's Junkmail folder.
If it does, see if the same thing happens when you put the site on your
production server (what certificates your production server has on it will
determine this). These statements come from past experience only, but if I
remember correctly I had the same problem, and I then eventually realized
the mail was being sent to my Junkmail folder. Good Luck!
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Show quoteHide quote
"Bob" <bduf***@sgiims.com> wrote in message
news:OqAQ%23IpfGHA.4304@TK2MSFTNGP05.phx.gbl...
>I have a bit of code in a functions that sends a .Net mail message
>asynchronously.
> emailClient.SendAsync(EmailMessage, 0)
>
>
> I don't really want to wait for the return status of the messages, so this
> normally tests out fine BUT
>
> When testing it I use my localhost as the smtp server. I can send an
> e-mail to my normal e-mail address and I get it with my outlook but it
> won't send an e-mail to my hotmail address. I won't see it thru my outlook
> hotmail connection, nor will I see it in my internet browser whenn I
> connect to my hotmail account.
> Yet when I test my Outlook program, I can send an e-mail to my hotmail
> e-mail address and I will see it in my Outlook hotmail account or in my
> Internet browser page for my hotmail.
>
> Why does this not work with the .Net  emailclient.send(Emailmessage) nor
> with emailClient.SendAsync(EmailMessage, 0), it looks like trying to send
> via my localhost smtp server is being blocked by hotmail servers.
>
> Any help would be appreciated.
>
> Bob
>
>
>
>
>