Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sending emails with a pdf of a record usings server 9

Featured Replies

I just moved over my database from hosting on a client to fm server 9. I'm just learning about some of the new possibilities, which brings up my question. How or can I have filemaker server automatically send out emails with a pdf attached of a record.... and can I email filemaker and have it create a new record with the contents of the email?

Thanks you very much for your time!

Currently, FMS does not give the ability to email directly. You will need a email plugin. We use 360 Works. Furthermore, if you are trying to automate the process of creating the PDF using FMS, it will not work as well.

  • 1 month later...
  • Author

Help.... I have the plug-in in my external functions but how do I make it send an email??? This is the first time I've used a plugin.

Here is the plugin

SendEmailWithAuthentication( from ; to ; subject ; htmlBody ; attachmentPath ; smtpHost ; username ; password )

I have to enter it as a field, so how does it or can it send an email??

Thanks! :

Edited by Guest

Is this 360 Works?

Most plugins use the Set Field script step and set a global field, gResults, typically.

Like this:

Set Field(gResults; SendEmailWithAuthentication( from ; to ; subject ; htmlBody ; attachmentPath ; smtpHost ; username ; password )

where from = field that contains your "from" email address

to = field that contains the "to" email address

etc.

attachmentPath = usually I Set a Variable to the attachment path and use the $variable here

smtpHost = usually I have this set to a global field in the open script where I "publish" all my prefs to globals.

username = same as above.

password = same as above.

Then, gResults will typically = 0 if the email is sent without error.

  • Author

Does FM 10 send via IWP?

As others have mentioned, you can send e-mail in IWP using plug-ins for versions of FM Server prior to 10, and there is now native support for this in FM Server 10. Regardless, you can't generate PDF files in IWP. If you can live without the PDF then just install your server-compatible plug-in the server, and write & test your code locally with the same plug-in installed on your computer. Now it should work in IWP.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.