Email Attachment of WebFile

  1. 4 weeks ago

    Ralph A

    Aug 19 Santa Monica, California

    The docs tell me to use EmailAttachment.LoadFromFile to attach an existing file to an existing EmailMessage. I'd like that EmailAttachment to be a WebFile that I create with code using MBS DynaPDF. Do I really need to save that file to the server's hard drive before attaching it, using EmailAttachment.LoadFile? I was hoping to somehow directly attach the WebFile to the EmailMessage. But LoadFile uses FolderItem.

  2. Ralph A

    Aug 20 Answer Santa Monica, California

    I found my answer here: https://forum.xojo.com/32992-how-to-use-web-file-as-emailattachment/0

or Sign Up to reply!