2 Replies Latest reply on Nov 10, 2016 1:53 AM by genera1che

    Pass HTML email to email client


      Hello All,


      As a newbie Filemaker developer, I recently started down the rabbit hole of HTML emails. Having read through innumerable forum posts, I came to the conclusion that this can almost only be done via plugins (paid for, or otherwise). The issue I'm having is that all the plugin options I have found involve having Filemaker send the HTML email via an SMTP server that has to be specified in the script step. Is anyone aware of any plugins or any other workaround to be able to have Filemaker generate an HTML email, then pass that to the email client, rather than via an SMTP server?


      I want my users to be able to view the completed email in the client before sending it.


      I have a feeling from another post here in this forum that certain more "advanced" clients (e.g. Thunderbird) will "interpret" HTML tags being passed via Filemaker, and apply them as a HTML email, however, if there was a way of controlling this, being able to add images for signatures, etc. etc., that would be really great.


      Many thanks!

        • 1. Re: Pass HTML email to email client

          Have them review and format the content in filemaker before it is being sent out. That's the easiest way. FileMaker text fields support rich text formatting with the ability to get those contents as HTML.


          Otherwise you would need something like the outlook manipulator plugin to do that, and even then, it's questionable at best if you'd actually be able to make the unsent email pop up from outlook. It may go to the drafts folder instead. Outlook has been getting more restrictive about external programs accessing it's functions.


          So essentially:

          1) Create an emails table in filemaker, with fields for subject, body, etc..

          2) Create a layout that allows people to edit contents of email

          3) Script creation of email record in filemaker and population of fields

          4) Script button that takes contents of current email record and sends it.

          • 2. Re: Pass HTML email to email client

            Hmmmm, you see, we use TheBAT email client, so the Outlook Manipulator isn't really an option either way.


            Maybe you're right... realistically, if ALL the manipulation, including from addresses/signatures/attachments, etc. can be done in Filemaker, then it really doesn't matter if the email client sees it or not... We're on IMAP, so the sent message will appear in the right box later anyway.


            That said, even saving a new message into the drafts would be fine - the main use is for users to create emails for clients, which are then saved in the drafts for checking by a manager before being sent.