Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6244871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:24:20+00:00 2026-05-24T12:24:20+00:00

I set the from address as System.Net.Mail.MailAddress(testemail@example.com, TESTEMAIL) Knowing that the first parameter is

  • 0

I set the from address as

System.Net.Mail.MailAddress("testemail@example.com", "TESTEMAIL")

Knowing that the first parameter is the address and the second is the display name, when I tried to send an email, I got

From: TESTEMAIL <testemail@example.com>

How can I do this without displaying

<testemail@example.com>?

I just want to see

From: TESTEMAIL
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:24:21+00:00Added an answer on May 24, 2026 at 12:24 pm

    There are a couple bad assumptions here:

    • Not everyone’s e-mail client works as yours does. Some will already display only “TESTEMAIL”, just like you want. Others will ignore “TESTEMAIL” entirely and only display “testemail@example.com”, and there’s nothing you can do about it. Many allow the user to choose how the user will see your name. None allow you, the sender, to override the user’s preference.

      I know you probably have messages come in to your own inbox this way, but that will happen only for addresses with e-mail domains that your e-mail client has chosen to trust, and there is nothing you can do to make other’s e-mail clients trust your domain.

    • That’s only if your messages make it to their destination in the first place. If you send messages yourself, they stand a good chance of being filtered as spam somewhere along the way. You almost always need to use an established, reputable, service when sending e-mail from a web site.

    Of course, those are moot if you’re working on an intranet site sending mail entirely within your own organization… but in that case, “TESTEMAIL” vs “testemail@example.com” hardly matters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using system.net.mail and have a textbox that users can enter their email address
Is it possible to set To address in SMTP mail settings just like From
I have a form action that needs to have its value set from a
Here is a complete example. I want to forbid using A::set from objects casted
I am using java to send mail. I want to set the from mail
Here is my web.config <system.net> <mailSettings> <smtp from=myemail> <network host=ispsmtpaddress port=25 userName=user password=pass defaultCredentials=true
try { String s1 = example@gmail.com; //sender (from) String s2 = request.getParameter(email);// (from jsp
Please, observe the following simple program (based on the example from the protobuf-net project
for sending email i set server name smtp.mail.yahoo.com and port is 465 i trying
I want to store a large result set from database in memory. Every record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.