How to Create a Simple Email Sending Application in VB.NET

We can easily send email's using the SMTP(Simple Mail Transfer Protocol) in visual basic. so to make this topic more familiar i have decided to make a tutorial on creating a simple email client/application using vb.net which allow us to send email's in our windows form application.

Lets start by designing the GUI of our Email Application



Design a form as shown in above picture
Add three labels and textboxes and name them:
Label1 - To
Label2 - Subject
Label3 - Body
also add a button and change its text to Send
Now double click the Send button and paste the code given below:


Note: you need to import the following namespace:
Imports System.Net.Mail

Also change youremail to your email id(gmail one) & your password to your password
Share on Google Plus

0 replies:

Post a Comment