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
    forums
Old 02-23-2004, 07:09 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
Sending Email

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);
}
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
About email spammers and fraudsters plonkeroo Lounge 21 11-16-2004 03:10 PM
email code aimdevil Lounge 1 05-02-2004 11:36 PM
sending an xml request sde PHP 3 09-25-2003 12:38 PM
sending POST multiple post requests in one php script. sde PHP 2 08-09-2003 05:10 PM


All times are GMT -8. The time now is 10:23 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting