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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:33:33+00:00 2026-05-28T07:33:33+00:00

Currently sending emails and setting the Return-path of an email(System.Net.Mail) works if i put

  • 0

Currently sending emails and setting the Return-path of an email(System.Net.Mail) works if i put :

MailMessage msg = new MailMessage();
msg.Sender = new MailAddress("not-deliviered@sample.org");
msg.Headers.Add("Return-Path", sReturnPath);

but if I send a successful email it would say delivered on behalf of the email above….

any ideas how to resolve this not to put ‘on behalf of’ but if it bounces back should return to ‘not-delivered’?

thanks

  • 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-28T07:33:34+00:00Added an answer on May 28, 2026 at 7:33 am

    The sender property is where you are getting that value from.

    Although you can set the Return-Path header, according to the RFCs, the accepting mail server is supposed to remove any Return-Path header values, and place a Return-Path header value with the value of the envelope MAIL FROM command.

    What you want to do, is use the not-delivered@sample.org as the MAIL FROM command value and a human read-able value in the normal FROM header. You cannot do this in System.Net.Mail. Whatever you use as the FROM value will be used as the MAIL FROM value.

    You have to use a 3rd party product.

    –Dave
    PS:
    — Shameless plug–
    Like aspNetEmail, which is my product, and supports this functionality.

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

Sidebar

Related Questions

Our application is sending our emails with Word attachments using System.Net.Mail. We have empty-string
I'm currently working on sending emails via sendgrid and currently sending emails to new
I'm currently sending html formatted emails from PHP's mail() function and checking them simply
I'm currently trying to add PGP signing support to my small e-mail sending script
Experts, I'm having issue when sending emails out. Currently, I have a feedback form
I am currently sending an email from my xcode/iphone app. The requirements are to
I'm currently testing my mailers with RSpec, but I've started setting up multipart emails
We are currently sending emails to users asynchronoulsy using the ThreadPool. Essentially, we have
A have ASP.NET 2.0 web application that should allow sending emails. I have a
Using the SmtpClient and MailMessage classes in .NET to send emails through a local

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.