Feeds:
Posts
Comments

Posts Tagged ‘sending email in .net’

Step 1: Create a Message object First, insert the appropriate “using” statement:
using System.Web.Mail;
Next, create a new Message object like so:
MailMessage msg = new MailMessage();
Step 2: Populate the message properties Now, set the message properties:
msg.To = sTo;
msg.From = sFrom;
msg.Subject = sSubjecct;
msg.Body = sBody;
 
Step 3: Set the SMTP server and send the message You’ll send the message [...]

Read Full Post »