The best ASP.NET Web Pages Email Tutorial In 2024, In this tutorial you can learn WebMail helper,Prerequisite: Email support,First: Edit Your AppStart page,_AppStart.cshtml,_AppStart.cshtml,Second: Create an e-mail input page,Email_Input.cshtml,Third: Create an e-mail Send page,Email_Send.cshtml,
WebMail helper - one of the many useful ASP.NET Web Helper.
WebMail helper make it easier to send messages, which according to SMTP (Simple Mail Transfer Protocol Simple Mail Transfer Protocol) to send mail from the Web application.
To demonstrate how to use e-mail, we will create an input page that allows users to submit a page to another page, and send a message regarding support issues.
In this tutorial, if you have created a Demo application, then you already have a page called _AppStart.cshtml, as follows:
To start the WebMail helper, to increase your page AppStart WebMail property as follows:
Properties explained:
SmtpServer: for sending e-mail SMTP server name.
SmtpPort: SMTP server used to send the transaction (e-mail) port.
EnableSsl: If your server uses SSL (Secure Socket Layer Secure Sockets Layer) encryption, the value is true.
UserName: The name used for sending e-mail SMTP e-mail accounts.
Password: Password SMTP e-mail accounts.
From: e-mail sender's address bar (usually the same UserName).
Then create an input page, and name it Email_Input:
Purpose input page is your phone, and then submit the data to the information can be used as a new page e-mail sent.
Then create a page for sending e-mail, and name it Email_Send:
For more information about ASP.NET Web Pages application to send e-mail information, please consult: WebMail Object Reference .