Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

problem while sending mail to hotmail and rediffmail using System.Web.Mail component

Posted on 2004-10-05
4
Medium Priority
?
301 Views
Last Modified: 2010-04-07
hi
i have a problem while sending mail to hotmail and rediffmail using System.Web.Mail component.
it doesn't give any warning or error message but the mail is not being sent.

here is the code.
      SmtpMail.SmtpServer = "xxx.xxxx.xxx.xxx";
                  MailMessage oMessage = new MailMessage();
                  oMessage.BodyFormat = MailFormat.Text;
                  oMessage.Priority = MailPriority.High;
                  oMessage.From = "sasi@xxx.com";
                  oMessage.To = "xxx@hotmail.com";
                  oMessage.Subject = "Test Mail";
                  oMessage.Body = "This is a test e-mail";
                  SmtpMail.Send(oMessage);

Thanks in advance
Regards,
Sasikumar
0
Comment
Question by:ravisankar1978
  • 2
2 Comments
 
LVL 20

Accepted Solution

by:
ihenry earned 2000 total points
ID: 12227078

I'm not sure if you can use SmtpMail to connect to Hotmail. The following article might help

http://www.csharphelp.com/archives2/archive456.html
Hotmail Using C# – A HTTPMail Client Under .NET
0
 
LVL 20

Expert Comment

by:ihenry
ID: 12227299
And also this
mail2rss
http://mail2rss.sourceforge.net/
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question