Click here to Skip to main content
15,887,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to add lists Pin
saurabh001 m6-Dec-11 22:23
saurabh001 m6-Dec-11 22:23 
GeneralRe: how to add lists Pin
Richard MacCutchan6-Dec-11 23:15
mveRichard MacCutchan6-Dec-11 23:15 
AnswerRe: how to add lists Pin
OriginalGriff6-Dec-11 22:36
mveOriginalGriff6-Dec-11 22:36 
GeneralRe: how to add lists Pin
saurabh001 m6-Dec-11 22:58
saurabh001 m6-Dec-11 22:58 
AnswerRe: how to add lists Pin
BillWoodruff7-Dec-11 10:11
professionalBillWoodruff7-Dec-11 10:11 
QuestionEmail Exception Catching Pin
AmbiguousName6-Dec-11 20:48
AmbiguousName6-Dec-11 20:48 
AnswerRe: Email Exception Catching Pin
Wayne Gaylard6-Dec-11 21:18
professionalWayne Gaylard6-Dec-11 21:18 
AnswerRe: Email Exception Catching Pin
AmbiguousName6-Dec-11 21:47
AmbiguousName6-Dec-11 21:47 
Here is what I do.
C#
string RetMsg = string.Empty;
try
{
  client.Send(message);
  RetMsg = "Success";
}
catch (SmtpException ex)
{
  RetMsg = String.Format("Error: {0}", ex.StatusCode);
}

MessageBox.Show(RetMsg);

Now I receiver's email address something like: "address@yaho.com". You see there is problem with the mail address? But it still shows me Success. What's wrong?
GeneralRe: Email Exception Catching Pin
Richard MacCutchan6-Dec-11 22:19
mveRichard MacCutchan6-Dec-11 22:19 
GeneralRe: Email Exception Catching Pin
Wayne Gaylard6-Dec-11 22:20
professionalWayne Gaylard6-Dec-11 22:20 
AnswerRe: Email Exception Catching Pin
Dan Mos6-Dec-11 22:25
Dan Mos6-Dec-11 22:25 
QuestionSerialization Problem Pin
Kevin Marois6-Dec-11 13:45
professionalKevin Marois6-Dec-11 13:45 
AnswerRe: Serialization Problem Pin
BillWoodruff6-Dec-11 16:30
professionalBillWoodruff6-Dec-11 16:30 
AnswerRe: Serialization Problem Pin
Mycroft Holmes6-Dec-11 19:20
professionalMycroft Holmes6-Dec-11 19:20 
AnswerRe: Serialization Problem Pin
Dan Mos6-Dec-11 20:50
Dan Mos6-Dec-11 20:50 
AnswerRe: Serialization Problem Pin
Pete O'Hanlon6-Dec-11 20:59
mvePete O'Hanlon6-Dec-11 20:59 
GeneralRe: Serialization Problem Pin
Kevin Marois7-Dec-11 5:22
professionalKevin Marois7-Dec-11 5:22 
GeneralRe: Serialization Problem Pin
Pete O'Hanlon7-Dec-11 5:25
mvePete O'Hanlon7-Dec-11 5:25 
GeneralRe: Serialization Problem Pin
BillWoodruff7-Dec-11 10:34
professionalBillWoodruff7-Dec-11 10:34 
QuestionHow to fetch the user filled fields in PDF form Pin
Ravi k rao6-Dec-11 9:58
Ravi k rao6-Dec-11 9:58 
AnswerRe: How to fetch the user filled fields in PDF form Pin
Not Active6-Dec-11 11:54
mentorNot Active6-Dec-11 11:54 
AnswerRe: How to fetch the user filled fields in PDF form Pin
Wonde Tadesse6-Dec-11 13:09
professionalWonde Tadesse6-Dec-11 13:09 
GeneralRe: How to fetch the user filled fields in PDF form Pin
Ravi k rao6-Dec-11 21:25
Ravi k rao6-Dec-11 21:25 
QuestionHow to pass null ref type. Pin
__John_6-Dec-11 3:18
__John_6-Dec-11 3:18 
AnswerRe: How to pass null ref type. Pin
Luc Pattyn6-Dec-11 4:17
sitebuilderLuc Pattyn6-Dec-11 4:17 

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.