Solved

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

Posted on 2004-10-05
4
287 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
4 Comments
 
LVL 20

Accepted Solution

by:
ihenry earned 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now