I am using ASP.NET web forms,
When a user submits a page , Then an email
/ div>
You use the System.Net.Mail.SmtpClient class SendAsync () method.
var smtpClient = new SmtpClient (); Var Message = New MailMessage (Adress, Aadder, Subject, Body); SmtpClient.SendCompleted + = New SendCompletedEventHandler (OnSendCompletedCallback); SmtpClient.SendAsync (message, empty); // Pass a user token to send when the tap or send is complete
If you need to complete some extra content after the completion of sending the encryption, you Send the event of SmtpClient as well.
Private zero onset completed callback (object sender, async complex event events e) {// handle callback, if you need to do something after email}
There is a link to the document on MSDN.
Comments
Post a Comment