cant send mail to hotmail or yahoo mail

  • Thread starter Thread starter erdem kemer
  • Start date Start date
E

erdem kemer

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;

mailMsg.To = "(e-mail address removed)";


mailMsg.Subject = "from";

mailMsg.Body = "body"

SmtpMail.Send(mailMsg );

Console.Write("ok");

}

code does not return any errors and it sends mail to my other accounts(which
i reach and control with pop3) but mail messages send to yahoo can not be
delivered(still there is no error returning)



whats my problem???

thanks in advance....
 
erdem kemer said:
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

Yes, they are web-based, not smtp mail servers.

Willy.
 
Following code perfectly worked for me

MailMessage mailMsg = new MailMessage();
mailMsg.From = "(e-mail address removed)";
mailMsg.To = "(e-mail address removed)";
mailMsg.Subject = "from";
mailMsg.Body = "body";
SmtpMail.Send(mailMsg );
Console.Write("ok");
 
Willy, can you explain this further? In my little brain, a SMTP client
should work just fine. I imagine that Yahoo has SMTP servers to accept and
send email with a web front-end. This front-end client app may use POP or
IMAP, but that shouldn't be important here. Isn't SMTP how email is
transported (Simple Mail Transfer Protocol)? If Yahoo! didn't support this
protocol, wouldn't they ostracize themselves from the rest of the world?



I am just curious.



Thanks
 
mailMsg.From = from;
from = from + from;

mailMsg.To = "(e-mail address removed)";


mailMsg.Subject = "from";

mailMsg.Body = "body"

SmtpMail.Send(mailMsg );

Console.Write("ok");

some SMTP servers are sensitive on attributes of incoming mail.
for example, if you provide a completely invalid address as the "from"
attribute, the server can refuse to deliver such mail.

try the code again but provide a valid "from" address.

Wiktor Zychla
 
Yes, hotmail and Yahoo use SMTP as protocol to deliver e-mail accross the
Internet. However, they use http as transport protocol between (Web) client
and (Web) server. They don't expose their POP3 and SMTP services directly to
the public, but use a webserver as gateway to the SMTP backbone.

A little diagram can tell a thousand words (if correctly formatted :-) )....
1)
Browser (sender) to: (e-mail address removed)
|
| HTTP protocol
V
WebServer (Yahoo)
|
| SMTP protocol
V
SMTP Server (Yahoo)
|
|
V
Internet SMTP protocol
|
|
|
V
SMTP server (ISP) domain: somedomain
|
| POP3 protocol
V
POP3 Client (e-mail address removed)

2)
Browser (receiver) (e-mail address removed)
^
|
| HTTP protocol
WebServer (Yahoo)
^
|
| SMTP protocol
SMTP Server (Yahoo) domain yahoo.com
^
|
|
Internet SMTP protocol
^
|
|
SMTP server (ISP)
^
| SMTP protocol
|
SMTP Client sendto: (e-mail address removed)

Willy.
 
Yes, but you are using an SMTP server (your ISP) to relay your message to
yahoo, this won't work without it.

Willy.
 
Back
Top