how to send email in asp.net c# sample code. Swift Learn

preview_player
Показать описание
you should use your mail server smtp address and port no.
and you can send email through your website.

For copy past
MailMessage mail = new MailMessage();
mail.From = new MailAddress(txtfrom.Text);
SmtpClient SmtpServer = new SmtpClient("172.16.0.110");
SmtpServer.Port = 23;
SmtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;
SmtpServer.UseDefaultCredentials = false;
mail.Subject = txtsubject.Text;
SmtpServer.EnableSsl = false;
SmtpServer.Timeout = 40000;
mail.Body = txtbody.Text;
mail.To.Add(txtto.Text);
SmtpServer.Send(mail);
mail.To.Clear();

~~~~~~~~~~~~~
Subscriber will be notified when I will upload new tutorials in future. Many more new tutorials coming soon, so stay tuned!
~~~~~~~~~~~~~
You can also know all the programming techniques, and bug fixing, error solution in my channel Swift learn.
~~~~~~~~~~~~~
Share this video with anyone if you think as useful.
Please leave any suggestions for future tutorials in the comment section below.
~~~~~~~~~~~~~

Connect with me

See all the PlayList of Swift Learn in below link

For Details

Рекомендации по теме
welcome to shbcf.ru