Message Body Truncated When Send Using CDO Object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravibhartiya
    New Member
    • Jan 2007
    • 1

    Message Body Truncated When Send Using CDO Object

    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.
  • Delerna
    Recognized Expert Top Contributor
    • Jan 2008
    • 1134

    #2
    Hmmm, the code works perfectly on the test server but it tuncates the message body on the production server.

    Comment

    Working...