Tag: Windows Forms email

1 articles found.

How to Send Email in Microsoft Visual Studio 2010

Visual Basic email tutorial, VB 2010 SMTP example, Windows Forms mail sender, email programming introduction

Hello friends! In this tutorial, we will create a small Visual Basic application that sends an email when you click a button. We will begin with a fixed recipient, subject and message so that you can understand the complete sending process before adding more controls. This is the first part of our Visual Studio 2010 email series. In part two, Sending Email in Microsoft Visual Studio 2010, we will let the user enter the recipient, subject and message in a Windows Forms interface. Here, our main concern is understanding the mail settings and building a clear first example. The original tutorial used a Gmail account password directly in the source code. That is no longer a suitable general instruction. We will keep the original Visual Basic teaching flow, explain which parts are legacy, and use separately supplied mail settings instead of embedding a real password in the program. Our program creates a message and submits it to an SMTP server. SMTP stands for Simple Mail Transfer Protocol. The server handles the next stage of delivery; our Windows form does not directly place text inside another person's inbox. Keep three identities separate: the account used to authenticate, the sender address shown on the message, and the recipient address. For a first test, use your own permitted sender account and another mailbox you control. This makes it easier to check the result without sending experimental messages to other people. A recipient can use a different provider from the ...