Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: validate an email address Pin
Not Active7-Sep-09 9:48
mentorNot Active7-Sep-09 9:48 
GeneralRe: validate an email address Pin
DaveyM697-Sep-09 9:51
professionalDaveyM697-Sep-09 9:51 
GeneralRe: validate an email address Pin
MarkB7777-Sep-09 18:07
MarkB7777-Sep-09 18:07 
AnswerRe: validate an email address Pin
0x3c07-Sep-09 9:55
0x3c07-Sep-09 9:55 
Questionnew line is not showing Pin
Jassim Rahma7-Sep-09 9:18
Jassim Rahma7-Sep-09 9:18 
AnswerRe: new line is not showing Pin
Manas Bhardwaj7-Sep-09 9:25
professionalManas Bhardwaj7-Sep-09 9:25 
GeneralRe: new line is not showing Pin
Jassim Rahma7-Sep-09 9:29
Jassim Rahma7-Sep-09 9:29 
GeneralRe: new line is not showing Pin
Manas Bhardwaj7-Sep-09 9:32
professionalManas Bhardwaj7-Sep-09 9:32 
jrahma wrote:
but it's still not considering the ENTER k


And it will not. ENTER key is /r/n which is not html. The mail message expects the body message to be valid html else it gets confused.

Can you try this:

msg.Subject = subject;
message = message.Replace(@"\r\n", "<br/>");
msg.Body = message;
msg.IsBodyHtml = true;


Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

GeneralRe: new line is not showing Pin
Jassim Rahma7-Sep-09 9:37
Jassim Rahma7-Sep-09 9:37 
GeneralRe: new line is not showing Pin
Manas Bhardwaj7-Sep-09 9:48
professionalManas Bhardwaj7-Sep-09 9:48 
Questioncheck for update Pin
Jassim Rahma7-Sep-09 8:48
Jassim Rahma7-Sep-09 8:48 
AnswerRe: check for update Pin
Not Active7-Sep-09 9:51
mentorNot Active7-Sep-09 9:51 
AnswerRe: check for update Pin
Christian Graus7-Sep-09 11:54
protectorChristian Graus7-Sep-09 11:54 
GeneralRe: check for update Pin
Jassim Rahma8-Sep-09 4:27
Jassim Rahma8-Sep-09 4:27 
GeneralRe: check for update Pin
Jassim Rahma10-Sep-09 10:10
Jassim Rahma10-Sep-09 10:10 
Questionsending SMS Pin
Jassim Rahma7-Sep-09 8:26
Jassim Rahma7-Sep-09 8:26 
AnswerRe: sending SMS Pin
Christian Graus7-Sep-09 11:41
protectorChristian Graus7-Sep-09 11:41 
GeneralRe: sending SMS Pin
Jassim Rahma8-Sep-09 4:14
Jassim Rahma8-Sep-09 4:14 
GeneralRe: sending SMS Pin
pin_raj1282-Jan-10 9:55
pin_raj1282-Jan-10 9:55 
AnswerRe: sending SMS Pin
Arun Jacob7-Sep-09 18:53
Arun Jacob7-Sep-09 18:53 
Questionhow to use user control public method in the child form in the parrent form !!! Pin
amir-haghighi7-Sep-09 5:37
amir-haghighi7-Sep-09 5:37 
AnswerRe: how to use user control public method in the child form in the parrent form !!! Pin
DaveyM697-Sep-09 5:49
professionalDaveyM697-Sep-09 5:49 
AnswerRe: how to use user control public method in the child form in the parrent form !!! Pin
jerryzhan7-Sep-09 14:14
jerryzhan7-Sep-09 14:14 
GeneralRe: how to use user control public method in the child form in the parrent form !!! Pin
amir-haghighi7-Sep-09 22:10
amir-haghighi7-Sep-09 22:10 
GeneralRe: how to use user control public method in the child form in the parrent form !!! Pin
amir-haghighi8-Sep-09 4:38
amir-haghighi8-Sep-09 4:38 

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.