473,396 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Send Email with "Reply-To" Question

I am attempting to develop a solution where I handle bounced e-mails.

I wish to field all bounced emails in a custom email account such a
bo*****@mycompany.com

From the aricle at http://www.systemwebmail.com/faq/2.7.aspx, I gather I
could use:
mail.Headers.Add( "Reply-To", "al*************@mycompany.com" );

When I test this from a test web app, I don't seem to field a bounced email
response for some reason. Any suggestions? My code follows:

private void Button1_Click(object sender, System.EventArgs e)

{

Send_Email(me***********@earthlink.net); //this is a spammers address that
gets bounced

}

private void Send_Email(string email)

{

string mailTo = "fk******@pfmail.com, gl**@glob.com";

MailMessage mail = new MailMessage();

mail.To = email;

mail.Bcc = mailTo;

mail.From = "in**@marketzar.com ";

mail.Headers.Add("Reply-To", "bo*****@mycompany.com");

mail.Subject = "Company Affiliate Program";

mail.Body = "Dear Melissa,\n\n";

mail.Body += "This email is in response to you signing up in our affiliate
program." + "\n"+ "\n";

mail.Body += "If you did not sign up for our program, please call customer
service at 800.822.7752" + "\n"+ "\n" ;

mail.Body += "Below is your username and password" + "\n"+ "\n";

mail.Body += "Username: " + email + "\n";

mail.Body += "Password: nerds\n\n";

mail.Body += "Please hold on to this information for future use." + "\n\n";

mail.Body += "You may log in at http://www.url.com/affiliate/" + "\n";

mail.Body += "and access a webpage where you may copy and paste a company
banner and HTML code" + "\n";

mail.Body += "that you should paste into you own webpage. " + "\n\n";

mail.Body += "The banner will re-direct your clients to our website via a
URL ";

mail.Body += "that will credit you, the affiliate, with sending that client
to our site." + "\n";

mail.Body += "This will ensure you receive appropriate finacial credit for
your support to our endeavors" + "\n" + "\n";

mail.Body += "Should you have any trouble, feel free to call us at
800.888.8888" + "\n" + "\n";

mail.Body += "Thank You" + "\n";

mail.Body += "MarketZAR";

mail.BodyFormat = MailFormat.Text;

mail.Priority = MailPriority.Normal;

SmtpMail.SmtpServer = "server";

SmtpMail.Send(mail);

}

Aug 14 '06 #1
0 875

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Herbert Piljer | last post by:
Wenn ich versuche ein Formular zu versenden bekomme ich als Absender immer Resource.id.#5@mailserver.de. Folgendes Script wird verwendet: <?php include ("syndbopen.php"); $email=...
24
by: Mohammd M. Hussain | last post by:
Hi, I am writing an XHTML 1.0 Strict Compatible web page. However, the validator complained about the <br> tag. I wonder whether there is another alternative for this. Thanks,
1
by: Devin Dow | last post by:
Framework Classes, like Point, PointF, Rectangle, etc., show nice info when you float over them or do a watch. For example, floating over a PointF shows "{X=1.0 Y=2.0}" But my classes only show...
9
by: Luc Dal | last post by:
Hello, I've serious problem using ASP under WindowsXP sp2. I get the following reply (sorry it's in french) Erreur de compilation Microsoft VBScript error '800a0401' Fin d'instruction...
86
by: Randy Yates | last post by:
In Harbison and Steele's text (fourth edition, p.111) it is stated, The C language does not specify the range of integers that the integral types will represent, except ot say that type int may...
6
by: Thomas H | last post by:
Hi everyone, I've got a question that's more of a "style" question... Do you guys reference "this" for every object that's inherited from System.Web.UI.Page? For example, when you use the...
3
by: Bill Nguyen | last post by:
I'm looking for sample codes to send email & fax from a VB app. We have SMTP server setup. As to faxing, I'm looking for a reliable and affordable faxserver. ANy suggestion is greatly appreciated....
8
by: kaili | last post by:
i'm chinese i heard that "The C Programming Language " by Brian W. Kernighan, Dennis Ritchie is the best book for new learners. but it is unavailable here. i mearn there is nobody selled it. i...
1
by: dgraper | last post by:
Friends: I'm an ex-VB programmer with a new job in an all C# shop. No problems the past few months thinking/converting between the two, but I just ran into a problem translating some working VB...
5
by: prathapavp | last post by:
hi all, We r working on ERP sys and am doing crossBrowser compatibility. The problem is am not able to load one function by onClicking the refrence text . could u please help me out.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.