How to send emails to multiple users from a VB.NET application ?

Sending emails to multiple people, on click of a single button on a desktop application software can be quite handy in many situations.
Here, I will discuss the steps to send email from a vb.net application form on click of a button named as Button1. One just needs to know the smtp port number and and the smtp client name of the email service that is to be used, and ofcourse the email address and password of the sender. In this article, I am using a gmail account to send emails.

Sending emails to multiple people, on click of a single button on a desktop application software can be quite handy in many situations.

Here, I will discuss the steps to send email from a vb.net application form on click of a button named as Button1. One just needs to know the smtp port number and and the smtp client name of the email service that is to be used, and ofcourse the email address and password of the sender. In this article, I am using a gmail account to send emails.

First step would be to import these two namespaces in the form that has the button control.

Adding attachments to the email is not compulsory. In case you want to add any, u can do so by just mentioning the path between double quotes . Smtp client name for gmail is "smtp.gmail.com" and its port number is 587.

Comments

No responses found. Be the first to comment...

Notify me by email when others post comments to this article.

Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.