Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    csharp
  » Sending Email
      by sde
 Page 1 of 1 
   

(Login to remove green text ads)
Sending email in .NET is pretty easy and below is a method that works great!
Code:
private static void SendEmail(string To, string From, string Subject, string Body, System.Web.Mail.MailFormat Format) { System.Web.Mail.MailMessage Mailer = new System.Web.Mail.MailMessage(); Mailer.From = From; Mailer.To = To; Mailer.Subject = Subject; Mailer.Body = Body; Mailer.BodyFormat = Format; System.Web.Mail.SmtpMail.Send(Mailer); }





 
 Page 1 of 1 
   

Rate This Article
1 2 3 4 5 6 7 8 9 10





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle