Hi,
I am using the following code for sending email
Sub SendEmail(iOrgI d,strEmailFrom, strEmailSubject ,strEmailBody,s trEmailTo)
Dim ObjEmail
ObjEmail.To=str EmailTo
ObjEmail.From=s trEmailFrom
ObjEmail.Subjec t=strEmailSubje ct
ObjEmail.HtmlBo dy=strEmailBody
ObjEmail.Send
Set ObjEmail=Nothin g
End Sub
It's work fine except that it truncated the message body randomly.Previo usly we were using CDONTS Object to send email and it had no any email truncation problem, but microsoft recommend to use CDO instead of CDONTS that is why we update our code.We ran the same code in our test server(Window xp ) and did not find any truncation problem, but on the production server (window 2003 service pack 2) .we are facing the truncation problem.
I am using the following code for sending email
Sub SendEmail(iOrgI d,strEmailFrom, strEmailSubject ,strEmailBody,s trEmailTo)
Dim ObjEmail
ObjEmail.To=str EmailTo
ObjEmail.From=s trEmailFrom
ObjEmail.Subjec t=strEmailSubje ct
ObjEmail.HtmlBo dy=strEmailBody
ObjEmail.Send
Set ObjEmail=Nothin g
End Sub
It's work fine except that it truncated the message body randomly.Previo usly we were using CDONTS Object to send email and it had no any email truncation problem, but microsoft recommend to use CDO instead of CDONTS that is why we update our code.We ran the same code in our test server(Window xp ) and did not find any truncation problem, but on the production server (window 2003 service pack 2) .we are facing the truncation problem.
Comment