O$-SMTPSend issue

Scotte Meredith spomacguy at gmail.com
Wed Dec 1 19:29:02 EST 2010

I think this is what you want:

Do mimeList.$add(1,'application','pdf',iFileName,,iBinData,,'base64') 

The third column is the content subtype. For a PDF, this is what you want.

On Dec 1, 2010, at 4:11 PM, Ben Weinberg wrote:

> Darryl:
> My code looks like this:
> Do FileOps.$splitpathname(iPathname,lDrive,lDirectory,lFileName,lExtension) Returns iReturnCode
> If iReturnCode=0
> Calculate iFileName as con(lFileName,lExtension)
> Do iFileops.$openfile(iPathname)
> Do iFileops.$readfile(iBinData)
> Do iFileops.$closefile()
> Do iMimeList.$add(1,'application','octet-stream',iFileName,,iBinData,,)
> End If
> Ben Weinberg
> On Dec 1, 2010, at 3:37 PM, Daryl Borneman wrote:
>> I have hit the wall on this one... Using a mime list to attach a pdf to an email... do I have to read it into a binary? My lfileops.$open(lpath) then lfileops.$readfile(lBinary) does not seem to do the job. Get an empty doc even though the email shows an attachment is there but empty. Followed the Omnis docs on this but cannot get it to work all the way. Tested the binary len(lbinary) but comes up 0.
>> Thanks for any suggestions...
>> Daryl B

Scotte Meredith
SpoMacGuy at gmail.com

More information about the omnisdev-en mailing list