Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to databind a CheckedListBox control Pin
Heath Stewart31-Aug-04 12:03
protectorHeath Stewart31-Aug-04 12:03 
GeneralDrag and drop between two treeview Pin
teomanx31-Aug-04 9:21
teomanx31-Aug-04 9:21 
GeneralRe: Drag and drop between two treeview Pin
Heath Stewart31-Aug-04 11:49
protectorHeath Stewart31-Aug-04 11:49 
General"see" tag not rendered Pin
Gary Hyslop at home31-Aug-04 9:09
Gary Hyslop at home31-Aug-04 9:09 
GeneralRe: "see" tag not rendered Pin
Heath Stewart31-Aug-04 11:32
protectorHeath Stewart31-Aug-04 11:32 
GeneralNested Tree Nodes At Run Time Pin
MohamedShehab31-Aug-04 8:17
MohamedShehab31-Aug-04 8:17 
GeneralRe: Nested Tree Nodes At Run Time Pin
LongRange.Shooter1-Sep-04 8:08
LongRange.Shooter1-Sep-04 8:08 
GeneralMailMessage headers Pin
simrang31-Aug-04 6:55
simrang31-Aug-04 6:55 
I need to set up an automated email system , which means users should
not be able to respond back to the emails but at the same time, we
need to track bounced emails. This is important as our customers are
paying for this service, so we need to track the bounced email Id's.

This is the code which I have tried:-

MailMessage msgRequest = new MailMessage();
msgRequest.BodyFormat = MailFormat.Text;
msgRequest.Subject = "Do Not reply to this email";
msgRequest.To = "Customer1@abc.com";
msgRequest.From = "automated@company.com";
msgRequest.Body = "Message Body";
msgRequest.Headers.Add("Return-Path", "validemailId@company.com");
//msgRequest.Headers.Add("Errors-To", "validemailId@company.com");
SmtpMail.SmtpServer = "SMTPServerName";
SmtpMail.Send(msgRequest);

I have tried both "Return-Path" and "Errors-to". But both of them
falied. The functionality that users cannot reply us back works fine
with this code but this code fails in tracking bounced emails. So for
invalid email id in "To", have no action reported to "return-path" or
"errors-to" valid Email Id.

I have also tried doing this:-

MailMessage msgRequest = new MailMessage();
msgRequest.BodyFormat = MailFormat.Text;
msgRequest.Subject = "Do Not reply to this email";
msgRequest.To = "Customer1@abc.com";
msgRequest.From = "validemailId@company.com";
msgRequest.Body = "Message Body";
msgRequest.Headers.Add("From", "automated@company.com");
SmtpMail.SmtpServer = "SMTPServerName";
SmtpMail.Send(msgRequest);

Using this code, user only sees automated@company.com and never sees
validemailId@company.com so they cannot reply us back. But again this
code fails for tracking bounced emails. It doesnt send me bounced
emails at validemailId@company.com.

Can somebody suggest me what is going wrong here?

Quick response will be really appreciated and Thanks in Advance for
any help.



Simran.
GeneralRe: MailMessage headers Pin
Heath Stewart31-Aug-04 7:14
protectorHeath Stewart31-Aug-04 7:14 
GeneralRe: MailMessage headers Pin
simrang31-Aug-04 10:47
simrang31-Aug-04 10:47 
GeneralRe: MailMessage headers Pin
Heath Stewart31-Aug-04 11:29
protectorHeath Stewart31-Aug-04 11:29 
GeneralRe: MailMessage headers Pin
Dave Kreskowiak31-Aug-04 10:39
mveDave Kreskowiak31-Aug-04 10:39 
GeneralRe: MailMessage headers Pin
simrang31-Aug-04 10:46
simrang31-Aug-04 10:46 
GeneralRe: MailMessage headers Pin
Sebastian Schneider1-Sep-04 22:43
Sebastian Schneider1-Sep-04 22:43 
QuestionHuh? Can this be logical? Pin
Jerry Hammond31-Aug-04 6:24
Jerry Hammond31-Aug-04 6:24 
AnswerRe: Huh? Can this be logical? Pin
Steven Campbell31-Aug-04 6:32
Steven Campbell31-Aug-04 6:32 
GeneralRe: Huh? Can this be logical? Pin
leppie31-Aug-04 6:38
leppie31-Aug-04 6:38 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus31-Aug-04 11:05
protectorChristian Graus31-Aug-04 11:05 
GeneralRe: Huh? Can this be logical? Pin
Heath Stewart31-Aug-04 11:58
protectorHeath Stewart31-Aug-04 11:58 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus31-Aug-04 12:17
protectorChristian Graus31-Aug-04 12:17 
GeneralRe: Huh? Can this be logical? Pin
Heath Stewart31-Aug-04 12:23
protectorHeath Stewart31-Aug-04 12:23 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus1-Sep-04 10:51
protectorChristian Graus1-Sep-04 10:51 
GeneralRe: Huh? Can this be logical? Pin
Jerry Hammond31-Aug-04 11:45
Jerry Hammond31-Aug-04 11:45 
GeneralRe: Huh? Can this be logical? Pin
Heath Stewart31-Aug-04 11:52
protectorHeath Stewart31-Aug-04 11:52 
GeneralRe: Huh? Can this be logical? Pin
Christian Graus31-Aug-04 12:19
protectorChristian Graus31-Aug-04 12:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.