/ Forums / Advansys Formativ / Formativ Creator / HTML emails not displaying correctly on forward or reply / Reply To: HTML emails not displaying correctly on forward or reply

#5596
Support 3
Participant

You need to add the “TEXT.htm” then “Mime.822” file as an attachment. You can test it by creating a draft message in GroupWise client, add an embedded image to the message body, save the message. GroupWise will create the Mime.822 and Text.htm file, save these files to disk.

The example code below send message using the Mime.822 file.

  
  Set newMail = GroupWise.Account.workfolder.Messages.Add("GW.MESSAGE.MAIL")
  newMail.Recipients.Add "name@gmail.com","" , 0
  newMail.subject = "Test message"
  call newMail.attachments.add("c:tempTEXT.htm", fgwFile, "TEXT.htm")
  call newMail.attachments.add("c:tempMime.822", fgwFile, "Mime.822")
  newMail.send

Hope this helps.

Regards,
Advansys Support