realbasic-nug
[Top] [All Lists]

Sending PDF with SMTP Socket

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Sending PDF with SMTP Socket
From: Yves Vindevogel <yves dot vindevogel at implements dot be>
Date: Sat, 31 Jul 2004 20:00:28 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi,

I'm trying to send a PDF file as attachment with the SMTP Socket
I'm using the code from the Reference manual, with this extension, the "mime type"

  file = New EmailAttachment
  file.MIMEType = "application/x-pdf"

  file.loadFromFile GetFolderItem("040731uittreksel1.pdf")
  mail.attachments.append file //add file to attachments array

  SMTPSocket1.messages.append mail //add email to list of messages
  SMTPSocket1.SendMail //send message


When I receive the mail (I'm sending to myself to test), Adobe can't open it.
Says it was either corrupt or send with the wrong encoding.

What do I need to specify ?  What's the encoding of a PDF.
The document itself contains only a scanned file.

Regards
Yves

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>