Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2004, 03:59 PM
Registered User
 
Join Date: Dec 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default mail object and Reply-To

How to send emails with Reply-To set? I've tried this

MailMessage m = new MailMessage();
m.To = "[email protected]";
m.From = "[email protected]";
m.Headers.Add("Reply-To", "[email protected]");
m.Subject = strSubject;
m.Body = strEmailBody;
this.SendMail(m.To, m.From, m.Subject, m.Body);

The mail sends ok, but when I reply, it's to [email protected] -- ignoring the Reply-To header. Also, the header does not appear in header info.

I've tried Return-Path in place of Reply-To, with similar results. I've tried sending to Outlook and Yahoo mail.

 
Old January 21st, 2004, 04:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

My guess is that it was done that way so you can't spoof emails.








Similar Threads
Thread Thread Starter Forum Replies Last Post
REPLY rohi_101 General .NET 0 December 5th, 2008 06:50 AM
reply to a question:datatype of unbound object q2q2 BOOK: Access 2003 VBA Programmer's Reference 0 November 8th, 2006 04:58 PM
Please reply me urgently! m_o_o_n Pro JSP 0 April 4th, 2006 06:49 AM
Error on mail object .send blaabil Classic ASP Basics 6 January 16th, 2006 10:49 PM
Reply E-mail System Requirements Hal Levy Forum and Wrox.com Feedback 47 July 30th, 2003 06:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.