VB.NET - how to send mail from my own server in vb.net window application?

Asked By kiruba .e on 20-Jun-12 02:57 AM
Earn up to 30 extra points for answering this tough question.
Hi,


Subject : Send mail from my own server( for example : smtp.gmail.com like this smtp.myownserver.com)
is it possible send mail from my own server? if so,

How to do that in vb.net windows application?

Thanks

Regards

Kiruba.e
Robbe Morris replied to kiruba .e on 20-Jun-12 09:24 AM
You need to configure the SMTP service on your own server.  Beware though, there are thousands of bots probing your network ports looking for guys who enabled SMTP but didn't know how to secure it properly.  Your server will end up as a relay for all sorts of Chinese dissidents, Muslim extremists, god knows who else wants to mass mail their BS.
[)ia6l0 iii replied to kiruba .e on 20-Jun-12 01:03 PM
First of all, you need to install the SMTP server on your web server, and configure it to listen. 

There is an excellent MSDN article titled "How to: Install and Configure SMTP Virtual Servers in IIS 6.0" which explains every step in a clear manner. And note that this is not done on the client machine (because you say VB.Net windows application). This has to be done on the webserver. So you need to connect to a webserver from your windows application, which inturn will send mails through the newly configured SMTP Server. See below for a clear explanation. 



Hope this helps.
kiruba .e replied to [)ia6l0 iii on 21-Jun-12 03:32 AM
i am already having my own server.  And i try to send email with my smtp server.  But it shows error like authentication required or mail sending failed.

Thanks'
Kiruba.e
[)ia6l0 iii replied to kiruba .e on 21-Jun-12 10:36 AM
How have you configured your smtp server? Please shed more details.