Hi Everybody,
I am sending mail using the new class in .Net 2.0.
Here while sending internal mails it is giving me problem.
Carriage return, Line feed and Spaces are lost while sending mails.
I am using msg.BodyEncodin g = System.Text.UTF 8Encoding.UTF8 to encode the body.
But same code and same mail is going fine , when sent to external mails (Like gmail, yahoo, etc.)
Please can anyone help me in solving my problem.
I even tried replacing the carriage return and lifeed like this,
If InStr(mStrBody, CChar(Microsoft .VisualBasic.Ch r(13)) + CChar(Microsoft .VisualBasic.Ch r(10)), CompareMethod.B inary) Then
mStrBody.Replac e(CChar(Microso ft.VisualBasic. Chr(13)) + CChar(Microsoft .VisualBasic.Ch r(10)), vbCrLf)
End If
But too its not working.
Thank you all in advance.
Deepak
I am sending mail using the new class in .Net 2.0.
Here while sending internal mails it is giving me problem.
Carriage return, Line feed and Spaces are lost while sending mails.
I am using msg.BodyEncodin g = System.Text.UTF 8Encoding.UTF8 to encode the body.
But same code and same mail is going fine , when sent to external mails (Like gmail, yahoo, etc.)
Please can anyone help me in solving my problem.
I even tried replacing the carriage return and lifeed like this,
If InStr(mStrBody, CChar(Microsoft .VisualBasic.Ch r(13)) + CChar(Microsoft .VisualBasic.Ch r(10)), CompareMethod.B inary) Then
mStrBody.Replac e(CChar(Microso ft.VisualBasic. Chr(13)) + CChar(Microsoft .VisualBasic.Ch r(10)), vbCrLf)
End If
But too its not working.
Thank you all in advance.
Deepak
Comment