If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Sending E-mails in .NET!?

Hi, guys.

I'm trying to send e-mails from my windows app, with a series of frustrations:
1) found system::net::mail.
-Got excited at first, but the problem is I need an SMTP host

2) my webhost, yahoo, does SMTP!
-problem is a) it says to use SSL and I don't know how in .NET; b) every username/password combo says Yahoo is disconnecting me, so apparently SSL is required, not optional?

3) looked for "free" smtp servers
-they all send their own message with the mail, which looks unprofessional. Also most use SSL, which I don't know how to use.

Can anyone give me a clear and simple way to get some e-mails delivered from my app, or even give me some hints where/how to start finding info on my own? Ideally, does anyone know of a tutorial? Any ideas at all (even helpful guesses) would be GREATLY appreciated.

Re: Sending E-mails in .NET!?

Okay I decided to do a C# code example using GMail account, and decided to make a new post for that for clarity reasons (sorry if this is considered spamming). About the bennyboy2's question about how to use SSL, it's quite easy. SmtpClient has a property EnableSsl, which you need to set to true. GMail needs to have your username and password, and those you can set in NetworkCredential object , and pass that to SmtpClient's Credentials-property.

Below is a very simple sample that sends a test email message. It's very basic and doesn't do anything fancy, but it will get you started anyway.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.