Agradecemos tu apoyo para difundir nuestros enunciados acerca de las ciencias informáticas.
Ejemplo: mailkit csharp enviar correo
usingSystem;usingMailKit.Net.Smtp;usingMailKit;usingMimeKit;namespaceTestClientclassProgrampublicstaticvoid Main (string[] args)var message =newMimeMessage();
message.From.Add (newMailboxAddress("Joey Tribbiani","[email protected]"));
message.To.Add (newMailboxAddress("Mrs. Chanandler Bong","[email protected]"));
message.Subject ="How you doin'?";
message.Body =newTextPart("plain")
Text =@"Hey Chandler,
I just wanted to let you know that Monica and I were going to go play some paintball, you in?
-- Joey";using(var client =newSmtpClient())
client.Connect ("smtp.friends.com",587,false);// Note: only needed if the SMTP server requires authentication
client.Authenticate ("joey","password");
client.Send (message);
client.Disconnect (true);
Sección de Reseñas y Valoraciones
Nos encantaría que puedieras difundir este post si te ayudó.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)