We have reset all users FileMaker related profile fields. Please take the opportunity to update your information,  this will provide background to members whom read your posts. Click here.

Jump to content

Recommended Posts

Is it possible to get as a return value the HTML code derived from the EmailSetBodyFile function? for example, given the following code, I would like to get the resulting html back. I guess I could extract the html from the file and do the substitutions in using filemaker script steps, however i am wondering if it is possible to do with plugin functions.

EmailSetBodyFile( $_body_html_file ; 1 ) and
EmailBodySubstitute( $_preamble_replace_string ; $_body_html ) 
EmailBodySubstitute( $_signature_replace_string ; $_signature_html )

 

Share this post


Link to post
Share on other sites
ryan360Works    16

Hi Darren,

There is not a function in the Email plugin that will output the HTML after the substitutions. Your approach is probably the best way to accomplish this. The only way I can think of to do this with solely the Email plugin would be to send the email to yourself ( or any other inbox you can access) first and then do a read on the inbox, pull the email in and parse the html out of it using EmailReadMessageValue("html"). 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • By LelandLong
      I read that the new 3.01 version does not require Java.
      When I run FMPAv16 on my Mac (10.11.6) and use the sample Email database it works just fine and I see nothing related to Java. I had the older v2.12 plugin installed on here and have just updated to v3.01 today.
      When I run FMPAv16 on a different Mac (10.11.6) and install the v3.01 plugin (never had the plugin installed on this machine before today) and run the sample database a Java App runs without any windows, Just visible in the lower right dock and its single menu is titled "Java"
      Any ideas as to this oddity?
       
      Leland Long
    • By DreadDamsel
      Hi,
      I've spent a lot of time searching around to try to figure this out - to no avail.
      I want to be able to send a single email (may be different each time the mailout is done) to multiple recipients that are the result of a find.
      I've created the script and it works fine EXCEPT I get a separate email window pops up for every recipient, into which I then have to complete the Subject and contents - not what I was hoping for. Even to do it as a an email to a single address (our organisation) and all others gathered as BCC opens up separate windows for each found record.
      Can someone please help me resolve this? If I can solve it for this list, then I can apply the same principle to the other 4 "finds" I need to be able to do.
      Using FMP12 Advanced on Mac (so using Mail), though the final product will be on Windows.
    • By john777
      Hello
      Am trying to clean up the email field on a filemaker database.  At the moment there are many records that contain more than one email address or an email address and text.
      what I want to do is delete everything in the field apart from the first email address
      In the vast majority of cases the required email address is the first thing in the field.  So my thinking is that the script would have to read along until it found an "@" symbol and then truncate the text at the next space comma or backward or forward slash as they are generally the methods people have used to separate the email addresses.
      Apart from that am struggling - I would be delighted if someone could give me some pointers on this
    • By menno
      When updating any 360works-plug-in it is deactivated after any update. Sometimes it does not even is replaced.
      I have created batch-scripts to shut off FileMaker and then remove any 360works-plug-in.
      After that my user(s) have to restart the application again and the new version of (any) 360works plug-in is installed correctly and activated automatically.
      I also use other plug-ins by Troi, Dacons en Goya simultaniously and these work perfectly fine and also will be updated and activated when a newer version is being installed. Only the 360works-plug-ins fail to update everytime.
      I use the script-step "Install plug-in file" so nothing exotic is done there.
      The problems occur on windows 7, 8, 8.1, 10, 2008 and 2012. On the 32 and 64 bits versions (2012 - 64-bit only)
      Any suggestions or anyone else has the same trouble?
    • By Oyseka
      Hi all, I know this should be easy but I am not getting it right.

      The mail gets sent but no attachment
×

Important Information

By using this site, you agree to our Guidelines.