Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Send e-Mails through a Web Application
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01114218
Message ID:
01114296
Vues:
14
I'm not sure about accessing outlook, but if you're using an exchange server and developing in .NET 2.0 you can use system.net.mail. Somethiing like this, we use it for internal web applications and it works very well:

MailAddress to = new MailAddress("to@you.com");
MailAddress from = new MailAddress("to@you.com");

//build the email message(subject,body)
MailMessage mail = new MailMessage(to, from);
mail.Subject = "";
mail.Body = "";

//set the smtpclinet and send the email
SmtpClient launcher = new SmtpClient("nameofserver",25);
launcher.Send(mail);
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform