How to create an HTML e-mail?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

How to create an HTML e-mail?

Rating:

Take the following steps to create an HTML e-mail as follows:

  1. Create a MailMessage class object as follows:

    Dim mail As MailMessage = New MailMessage
    Dim from As MailAddress = New MailAddress("content@ucertify.com", "Mark")
    Dim to As MailAddress = New MailAddress("sales@ucertify.com", "Allen")
    mail.From = from
    mail.To = to
    mail.Subject ="HTML message"

  2. Create an HTML message body as follows:

    mail.Body = "<html><body><h1>Hello</h1><h2>Hello</h2><h3>Hello</h3><br>This is my first HTML message.<br></body></html>"
    mail.IsBodyHtml = True

  3. Send the message as follows:

    Dim myclient As SmtpClient = new SmtpClient("smtp.ucertify.com")
    Myclient.Send(mail)


Rating:



Other articles

Click here to Article home

Microsoft Certification MCSE: MCSA , MCTS, MCDST, MCAD, MCDBA, MCSE Messaging, MCSE Security
JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.