Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Designing an Email application

Designing an Email application

Scheduled Pinned Locked Moved ASP.NET
htmlsalestutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hasanali00
    wrote on last edited by
    #1

    I am trying to understand how to send HTML emails to the users. The content of the emails can vary according to the users, e.g.: Dear [CustomerName] Thanks for your orders. Your order number is [OrderNumber]..... How can I create / manage email content such as above. I am also interested to know how does Amazon create their emails. Because the whole content of their emails is tailored for each individual customer. Thanks

    T 1 Reply Last reply
    0
    • H hasanali00

      I am trying to understand how to send HTML emails to the users. The content of the emails can vary according to the users, e.g.: Dear [CustomerName] Thanks for your orders. Your order number is [OrderNumber]..... How can I create / manage email content such as above. I am also interested to know how does Amazon create their emails. Because the whole content of their emails is tailored for each individual customer. Thanks

      T Offline
      T Offline
      Tal Kain
      wrote on last edited by
      #2

      Hey, Check out Syed Moshiur Murshed's tutorial for sending email using GMail[^]. in his tutorial you can see that one of the properties he configed was: mailMsg.BodyFormat = MailFormat.Text; MailFormat is an enum that one of his options is "HTML" that sends the email in html format (as you asked) and by using the class MailMessage you can render a html code and send it to the customer.. something like: string customerName = "....."; long customerId = 539482; string messege = "Hello " + customerName + " your Id is " + customerId.ToString() + ""; and then by using the Body property in MailMessage you can set the mail's text to the messege by using: mailMsg.Body = messege; //assuming mailMsg is the object of MailMessage Hope I helped... Good luck :-) Tal Kain.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups