!BAD!BAD field

Scotte Meredith spomacguy at gmail.com
Wed Mar 16 22:47:36 UTC 2022

I have an odd problem that has popped up.

I'm putting together an email to send out using the SMTP Worker.

It properly reads the file into ibnPDF. I can view the data and it looks OK.

When I add it to the ilMimeList, the lBinData columns shows !BAD!BAD....

Earlier, it was not doing this and the email was sending out with the PDF attachment. Now it's not and I don't see the reason why.

I've tried both with lEncoding having a value and leaving it blank.

Has anyone seen this? Any ideas?

Do ilMimeList.$define(lLevel,lContentType,lContentSubtype,lFilename,lCharData,lBinData,lCharset,lEncoding,lDisposition)

Do ioFileOps.$openfile(ilAttachments.path,kTrue)
Do ioFileOps.$readfile(ibnPDF)
Do ioFileOps.$closefile()
Do ioMimeTypes.$getMimeTypes(lcExtension,lcType,lcSubType)
Do ilMimeList.$add(lnLevel,lcType,lcSubType,icDocumentName,,ibnPDF,'iso-8859-1','base64')

Scotte Meredith
spomacguy at gmail.com

More information about the omnisdev-en mailing list