What are the process involved in authenticating the mail in ASP?
Use the below mentioned contents to know the process involved in authenticating the mail.
1] First create the mail message as like -> MailMessage mail = new MailMessage();
2] Then set the addresses as mentioned below
mail.From = new MailAddress(firstname.lastname@example.org);
3] Set the content as like below ->
mail.Subject = This is an email;
mail.Body = This is the body content of the email.;
4] Now send the message as ->
SmtpClient smtp = new SmtpClient(127.0.0.1);
5] Inorder to authenticate, user must set the username and password properties on the SmtpClient as like below.
smtp.Credentials = new NetworkCredential(username, secret); smtp.Send(mail);
In step 2, you must replace the words me and email@example.com, with your name and yours company's name.
Not at all
What could be better? (Optional)
Not related to my issue
Too complicated explanations
Too much information
Too old information
Do you have any other feedback about this faq ?