How Do I send a Return-Receipt with System.Web.Mail

Posted on 2005-02-25
Medium Priority
Last Modified: 2008-01-09
How Do I send a Return-Receipt with System.Web.Mail

Have this and its working fine

                objMM.To = dtReader("EmailAddress")
                objMM.From = strReturnAddress
                objMM.BodyFormat = MailFormat.Html
                objMM.Priority = MailPriority.Normal
                objMM.Body = strEmailBody
                objMM.Subject = strSubject

But need to add return receipt

Question by:Charles Baldo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 15

Expert Comment

ID: 13406993
i don't think you can do that...
LVL 18

Accepted Solution

tusharashah earned 2000 total points
ID: 13407105
Add following lines to your code before you call .Send method:

objMM.Headers.Add("Return-Receipt-To", objMM.From )

LVL 15

Expert Comment

ID: 13407113
oh wow that works..cool
LVL 12

Expert Comment

ID: 13407204
Is the above what you want?

Or this?
   mail.Fields.Add("urn:schemas:mailheader:return-receipt-to", "return email")

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question