send pdf attachment
Gavin Foster
omnislist at dataweaver.com
Mon Jun 29 06:17:42 EDT 2015
Hi Kris,
Have you tried changing the third parameter from ‘pdf’ to ‘octet-stream’?
I don’t fully understand this but I saw it used in generic code, so you might like to give it a try.
Rgds
Gav
EUROMNIS 2015.
BOOK NOW at:
http://www.euromnis.com
Euromnis 11th - 16th October 2015
On 29 Jun 2015, at 09:07, KRIS GEERTS <kjtgeerts at gmail.com> wrote:
> Hi all,
>
> Im trying to send a pdf with omnis 6.1.2 64 bit with this approach
> open the file and read into a binary
>
> Do Iv_FileOps.$openfile(pFileName) Returns #F
> Do Iv_FileOps.$readfile(Iv_BinData) Returns #F
> Do Iv_FileOps.$closefile Returns #F
>
> then include it into the mail
>
> Do Iv_Mimelist.$add(1,'application','pdf','test.pdf',,Iv_BinData,,'base64') Returns #F
>
> and then just send if like I do all mail .
> And I recieve a email , with an attachment of the type pdf and of the correct name .
> But I cannot open it ; it says that there is a problem with the coding of the pdf of the pdf is damaged
>
> I must do something wrong ..but I cannot figure out what ?
> This is something someone must have tackled a long time ago ?
>
> Help much appriciated
>
> Kris
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list