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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:57:37+00:00 2026-06-11T19:57:37+00:00

In SMTP there is the envelope MAIL FROM header (actually an SMTP command), and

  • 0

In SMTP there is the envelope MAIL FROM header (actually an SMTP command), and a FROM header in the message data itself (example below)
I need to be able to modify the MAIL FROM header without affecting the MIME ‘From’ header.
The difficulty is the .net MailMessage contains one ‘From’ property that controls both SMTP and MIME header, and the ‘Headers’ attribute that allows customizing header doesn’t not allow overwriting the From header.

This functionality is required for bounce tracking, and I would very much like to avoid switching to a different SMTP package or implementing SMTP from scratch…

For example – please notice the two emphasized lines

*{S}220 workstation1 Microsoft ESMTP MAIL Service
{C}HELO workstation1
{S}250 workstation1 Hello [127.0.0.1]
{C}MAIL FROM: BOUNCE_TRACKING_TOKEN@mymailinglist.com
{S}250 2.1.0 me@mycompany.com….Sender OK
{C}RCPT TO:
{S}250 2.1.5 you@yourcompany.com
{C}DATA
{S}354 Start mail input; end with .
{C}
From: coolstuff@mymailinglist.com
To:
Subject: Super simple email
Reply-To:
This is a very simple body.
.
{S}250 Queued mail for delivery
{C}QUIT
{S}221 Service closing transmission channel*

  • 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-06-11T19:57:38+00:00Added an answer on June 11, 2026 at 7:57 pm

    Set the Sender property with the address you want in the MAIL FROM header.

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

Sidebar

Related Questions

Are there any free SMTP servers that just accept the mail sent through them,
I want to use the pear mail extension to send SMTP authenticated emails. There
i am using SMTP protocol for sending mail from my iphone app. but i
I'm able to get smtp message sent to a 3rd party smtp server when
Is it possible to set To address in SMTP mail settings just like From
Is there any way to get SMTP server name value from php.ini so that
If there is a mail server string like smtp.gmail.com:587 , how could I parse
Are there constraints on the length and/or format of SMTP message-id's? I.e.: How long
Is there any Windows Native API to send SMTP based message using C++
From what I understand there is no SMTP server in IIS on Vista. I

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.