sending mail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.

thanks! herbert
 
herbert said:
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.

smtp uses port 25, so you should have a look if that's accesible.
Just do a telnet to port 25 of your smtp server, and if theres an
answer, it isn't blocked.
 
And what is the name of the smtp server of hotmail?
is it smtp.hotmail.com ?
or smtp.hotmail.de?
how do I find out?

herbert
 
Hello herbert,

Im not sure if only they have SMTP, because they use specific protocol that
works on Outlook Express only

h> And what is the name of the smtp server of hotmail?
h> is it smtp.hotmail.com ?
h> or smtp.hotmail.de?
h> how do I find out?
h> herbert

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
And what is the name of the smtp server of hotmail?
is it smtp.hotmail.com ?
or smtp.hotmail.de?
how do I find out?
D:\>nslookup
set type=mx
hotmail.com
Server: UnKnown
Address: 192.168.200.11

hotmail.com MX preference = 5, mail exchanger = mx1.hotmail.com
hotmail.com MX preference = 5, mail exchanger = mx2.hotmail.com
hotmail.com MX preference = 5, mail exchanger = mx3.hotmail.com
hotmail.com MX preference = 5, mail exchanger = mx4.hotmail.com
mx1.hotmail.com internet address = 65.54.244.136
mx1.hotmail.com internet address = 65.54.244.8
mx1.hotmail.com internet address = 64.4.50.50
mx1.hotmail.com internet address = 65.54.245.8
mx2.hotmail.com internet address = 65.54.244.40
mx2.hotmail.com internet address = 65.54.190.50
mx2.hotmail.com internet address = 65.54.245.40
mx2.hotmail.com internet address = 65.54.244.168
mx3.hotmail.com internet address = 64.4.50.179
mx3.hotmail.com internet address = 65.54.244.72
mx3.hotmail.com internet address = 65.54.245.72
mx3.hotmail.com internet address = 65.54.244.200
mx4.hotmail.com internet address = 65.54.244.104
mx4.hotmail.com internet address = 65.54.244.232
mx4.hotmail.com internet address = 65.54.245.104
mx4.hotmail.com internet address = 65.54.190.179
 
I doesn't work.

Using .NET 2.0 send mail to Microsoft's Hotmail mx1.hotmail.com lets the
message disappear somewhere. There is no exception in my app, yet the message
never arrives. And of course no trace.

add 1 more bug to the 4000 already known in .NET 2.0

herbert
 
Sorry, but I don't believe this is a .NET bug. Mail servers, especially
ones like Hotmail, Yahoo!, and Juno, are very protective on their relaying
capabilities mainly because these are the mail providers that are
blacklisted the most due to the spam that is supposed generated from these
domains.

The problem with using Hotmail as your SMTP server is that it will not log
anything on your computer. So, to know that the problem is that you cannot
relay, set up SMTP on your computer and then use 127.0.0.1 (localhost) as
the SMTP server. Then, if your email fails to arrive at its destination,
then you can look at your SMTP log files and see if it was rejected.

Regardless of the outcome, sending email by means of a web application has
always been tricky. If it doesn't work, most of the time it has to do with
the other mail servers involved or with the configuration of your own
computer. Both of these are independent of .NET.
 
One of the ideas of OO is encapsulation. If I code strictly by the book (ie
online help) then I copy 20+ lines of code and get a disaster.
The online help doesn't tell me how to make the mail class work. And if I as
a student have no admin rights on my PC I am out.

There is a solution to this:
Microsoft offering a Web Service on its hotmail servers. The send mail class
can then pass easily firewalls, smtp setup hassles and the like.
Why bother with admins and smtp as long as Web Services can be reached?
 
Unless you have direct access to the Hotmail SMTP server, which is not
available on free accounts, then you more than likely cannot send email from
your web server application through their SMTP servers.
 
Back
Top