473,811 Members | 3,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.Net Mail and hotmail question

Bob
I have a bit of code in a functions that sends a .Net mail message
asynchronously.
emailClient.Sen dAsync(EmailMes sage, 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.sen d(Emailmessage) nor
with emailClient.Sen dAsync(EmailMes sage, 0), it looks like trying to send
via my localhost smtp server is being blocked by hotmail servers.

Any help would be appreciated.

Bob

May 23 '06 #1
1 1605
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
nj********@hotm ail.com
http://www.nathansokalski.com/

"Bob" <bd*****@sgiims .com> wrote in message
news:Oq******** ********@TK2MSF TNGP05.phx.gbl. ..
I have a bit of code in a functions that sends a .Net mail message
asynchronously .
emailClient.Sen dAsync(EmailMes sage, 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.sen d(Emailmessage) nor
with emailClient.Sen dAsync(EmailMes sage, 0), it looks like trying to send
via my localhost smtp server is being blocked by hotmail servers.

Any help would be appreciated.

Bob


May 25 '06 #2

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

Similar topics

6
2502
by: Wm | last post by:
I'm totally clueless on this one -- I'm getting 3 copies of every Email (in plain text, not HTML as expected), from a single mail() line... Can anyone tell me what might be causing the duplicates?? Thanx! Wm <?PHP include('dbconn.php');
13
2036
by: Ammar | last post by:
OK guys, Thanks to your help, I could finally send ASP mails with attachements... A very strange question: When I looked through all the sites you gave me and through Google, I got the impression that everyone was trying to send e-mail through ASP, but no one wrote something about building a page to RECIEVE an e-mail through a POP server or anything else.... can it be done? Ammar
6
5076
by: erdem kemer | last post by:
i cant send mail to yahoo mail or hotmail while i can send my other mail accounts (pop3) is it becouse yahoo and hotmail is web-based mail here is the code MailMessage mailMsg = new MailMessage(); mailMsg.From = from; from = from + from;
17
3789
by: LACH | last post by:
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?
9
3229
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on CDOmail. I don't want to use the Outlook reference because outlook prompts each time program access it and I have found a way to disable that. Can I use webmail with exchange? Thanks
10
599
by: herbert | last post by:
I am a hotmail user. 1) How do I send e-mail from my .NET 2.0 app via hotmail? How should the following lines look like? Assume my hotmail username is HMUN, my hotmail password is HMPW. Dim client As New SmtpClient (...) '??? client.Credentials = ... '??? 2) Of course this should also work behind a firewall. http port 80 works, rest unknown.
1
4791
by: crescent_au | last post by:
I am developing a simple mailing system. This requires sending emails in HTML format to one or more recipient. I am currently using PHP's mail() function. It works alright but it doesn't seem reliable. I am not able to send email to my hotmail account but it does send to yahoo account. I'm not sure if there is something about hotmail that blocks emails for some unknown reason. If it goes to yahoo, it must go to hotmail. it doesn't even...
12
4601
by: e_matthes | last post by:
Hello everyone, I am trying to use the mail() function to send a simple, text-only message. I have two websites hosted by the same company, on different servers. One is old and established, one I am currently developing. I am testing the mail functionality by sending a test message to an email account associated with my old website, and to my hotmail account. The message seems to be sent to both accounts, and I receive the message on...
9
3478
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient oSMTP.Send(oMailMessage) (in this line I am getting the above err)
0
9726
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10384
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10130
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6887
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4338
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.