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. General Programming
  3. C#
  4. How to manipulate the displaying of the "From" email address

How to manipulate the displaying of the "From" email address

Scheduled Pinned Locked Moved C#
csharpcomsysadminjsontutorial
3 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.
  • J Offline
    J Offline
    JohnTheDuke
    wrote on last edited by
    #1

    Hello, I need to find a way to manipulate the displaying of the "From" email address. Since I am also using the Sender field to send the email message on behalf of the Sender. So the the person who receives the message will see some thing like this from the email header (I am using the .Net CDO Mail API): From: jblow@abc.com on behalf of jdoe@xyz.com To: john@hotmail.com Here is the sample code that I have used: cdo = Server.CreateObject("CDO.Message"); cdo.From = "jdoe@xyz.com"; cdo.ReplyTo = "jdoe@xyz.com"; cdo.To = "john@hotmail.com"; cdo.Sender = "jblow@abc.com"; ... What I really want to do here is that I just want to manipulate the displaying of the From email address header so it will just display as: From: jdoe@xyz.com Thanks for any respond. John

    M 1 Reply Last reply
    0
    • J JohnTheDuke

      Hello, I need to find a way to manipulate the displaying of the "From" email address. Since I am also using the Sender field to send the email message on behalf of the Sender. So the the person who receives the message will see some thing like this from the email header (I am using the .Net CDO Mail API): From: jblow@abc.com on behalf of jdoe@xyz.com To: john@hotmail.com Here is the sample code that I have used: cdo = Server.CreateObject("CDO.Message"); cdo.From = "jdoe@xyz.com"; cdo.ReplyTo = "jdoe@xyz.com"; cdo.To = "john@hotmail.com"; cdo.Sender = "jblow@abc.com"; ... What I really want to do here is that I just want to manipulate the displaying of the From email address header so it will just display as: From: jdoe@xyz.com Thanks for any respond. John

      M Offline
      M Offline
      Muhammad Qasim Pasta
      wrote on last edited by
      #2

      try MailAddress

      J 1 Reply Last reply
      0
      • M Muhammad Qasim Pasta

        try MailAddress

        J Offline
        J Offline
        JohnTheDuke
        wrote on last edited by
        #3

        Hi Muhammad, Can you please give me a little bit more detail? Thanks, John

        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