Hi,
I am trying to change an exisiting message, using the following code (i left out the bit where the mulitpart test is done) i am want to add an inline image to the existing MIME stack.
'Change MULTIPART mime
Set orgMimeDoc=docContext.GetMIMEEntity
Set imgStream = sesCurrent.Createstream
imgStream.WriteText (vImgB64)
Set embedMime = orgMimeDoc.CreateChildEntity()
Set vMimeHdr = embedMime.CreateHeader(“Content-ID”)
Call vMimeHdr.SetHeaderVal(|<| & sID & |>|)
Call embedMime.SetContentFromText(imgStream, “image/gif”, ENC_BASE64)
Call embedMime.EncodeContent(ENC_IDENTITY_BINARY)
Call docContext.CloseMIMEEntities(True, “Body”)
sesCurrent.ConvertMime=True
This code works great, with one exception!
If there are 3 or more attachments in the original message, only the first 2 survive. The rest are beeing truncated. The size of the attachments do not matter, only the number of attachments.
Does anyone know if i’m doing this wrong, or has anyone seen this before?
Thanks in advance.