Solved

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

Posted on 2004-10-05
4
284 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 …
Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
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 Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

706 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

18 Experts available now in Live!

Get 1:1 Help Now