"Michal" <ad*****@gazeta.pl> wrote in message
news:ch**********@nemesis.news.tpi.pl...
Hi
I need to connect to Exchange 5.5 from .Net Web Application and send email
using user profile.
I did it two years ago on ASP but now I have to migrate it to .Net.
I can not find any solutions in msdn to resolve it.
Any idea how I can do this ?
Michal
is this what you looking for:
MailMessage msgMail = new MailMessage();
msgMail.To = "te**@address.com";
msgMail.From = "fr**@address.com";
msgMail.Subject = "Mail Example Subject";
msgMail.BodyFormat = MailFormat.Html;
string strBody = "MAIL EXAMPLE BODY";
msgMail.Body = strBody;
SmtpMail.SmtpServer = "[Server Name]";
SmtpMail.Send(msgMail);