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 7666931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:57:52+00:00 2026-05-31T14:57:52+00:00

I am implementing a mailing list using using .NET. As discussed in this answer

  • 0

I am implementing a mailing list using using .NET. As discussed in this answer, I need to send an email where the recipient of the envelope is different from the recipient in the To header. How to achieve this in C#? The SmtpClient and MailMessage classes in System.Net.Mail doens’t seem to permit this.

I tried:

        message.To.Add("list@example.com");
        message.Headers["Envelope-to"] = "user@example.com";

but the mail doesn’t get sent to what it is specified in the Envelope-to.

Any suggestions?

  • 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-31T14:57:53+00:00Added an answer on May 31, 2026 at 2:57 pm

    Adding an address to Envelope-To without adding it to To

    You can use the MailMessage.Bcc property. Addresses added there will only appear in the Envelope-To, not in the mail’s To:

    message.Bcc.Add("user@example.com");
    

    Adding an address to To without adding it to Envelope-To

    Here, I’m quite sure you are out of luck. I’ve had a look at the System.Net.Mail namespace with ILSpy, and it looks like this is not possible. The To header of the mail is created out of the To property of the MailMessage (see Message.PrepareHeaders), and the same property is used to fill the Envelope-To of the mail (together with the Cc and Bcc properties, see SmtpClient.Send). Manually setting Headers["To"] won’t help, since this value is overwritten with the contents of the To property (see Message.PrepareHeaders).

    So, list@example.com will get a copy of the message. Depending on the configuration of your SMTP server, this might lead to a mail loop.

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

Sidebar

Related Questions

implementing publishActivity in PHP using the REST API using this code: $activity = array(
While implementing the code from this question on my project I realized there's 3
I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap
When implementing a client/server solutions, one of the questions you always need to answer
I implementing a EventQueue and get notified when AWTEvents are send. I wait till
While implementing a design using nested generic collections, I stumbled across those limitations apparently
Implementing Document-View pattern I faced the problem: standard generic collections and dictionaries ( List<T>
When implementing a Facebook Canvas app using an iframe the iframe does a post
When implementing a Matrix construct using arrays, which would be more efficient? Using a
Implementing the basic algorithm using last array as a pivot in Java, is it

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.