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. From address problem in Sending Mail

From address problem in Sending Mail

Scheduled Pinned Locked Moved ASP.NET
comhelp
5 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.
  • K Offline
    K Offline
    K V Sekhar
    wrote on last edited by
    #1

    Hi all, I am trying send mail. I added email settings to web.config The problem is when i am sending mail, mail delivers. But with from address admin@mydomain.com [userName] but not 'donotreply@mydomain.com' any solution. To change the from address [avoiding UserName as From address]. Regards, sekhar

    A 1 Reply Last reply
    0
    • K K V Sekhar

      Hi all, I am trying send mail. I added email settings to web.config The problem is when i am sending mail, mail delivers. But with from address admin@mydomain.com [userName] but not 'donotreply@mydomain.com' any solution. To change the from address [avoiding UserName as From address]. Regards, sekhar

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      sekhar.k wrote:

      donotreply@mydomain.com

      Does this mail address exist ?

      K 1 Reply Last reply
      0
      • A Abhijit Jana

        sekhar.k wrote:

        donotreply@mydomain.com

        Does this mail address exist ?

        K Offline
        K Offline
        K V Sekhar
        wrote on last edited by
        #3

        Hi Abijit. Thanks for ur response. donotreply@[mydomainhere].com is exist, but in-place of 'mydomain' we have our domain name. The mail actually delivers to given to address. But there it showing from address as 'admin@mydomain.com' which is username used in web.config mailSettings. But i need from address as 'donotreply@[mydomainhere].com'. any suggestions. regards, kv sekhar

        A 1 Reply Last reply
        0
        • K K V Sekhar

          Hi Abijit. Thanks for ur response. donotreply@[mydomainhere].com is exist, but in-place of 'mydomain' we have our domain name. The mail actually delivers to given to address. But there it showing from address as 'admin@mydomain.com' which is username used in web.config mailSettings. But i need from address as 'donotreply@[mydomainhere].com'. any suggestions. regards, kv sekhar

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Ok, you can set the Name for mail address. That will display whatever name you provide with the adderess.

          MailAddress from = new MailAddress("admin@mydomain.com", "donotreply@[mydomainhere].com");

          K 1 Reply Last reply
          0
          • A Abhijit Jana

            Ok, you can set the Name for mail address. That will display whatever name you provide with the adderess.

            MailAddress from = new MailAddress("admin@mydomain.com", "donotreply@[mydomainhere].com");

            K Offline
            K Offline
            K V Sekhar
            wrote on last edited by
            #5

            Hi Abijit, I tried your logic by sending a sample email to my email address[gamil]. But no use. The display name appears in 'from' but it also shows the 'userName' when we click on 'show deails' link. When i open my mail from inbox. It displays the from as 'donotreply@[mydomainhere].com'. But when i click on 'show details' link it displays like below. "donotreply@[mydomainhere].com" I don't want show 'UserName' in Recipient user. Because its a credential. Any solution? Regards, kv sekhar

            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