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.

Attach PDF to Google Mail via Filemaker Send Mail

Featured Replies

  • Newbies

We have just migrated from Mac Mail to Gmail and the beautiful little script that we used to use to PDF Certificates of Attendance and attach them to emails isn't working with Gmail as it stands.

We are using SMTP to generate the emails now.

Set Variable was as follows:

$exportPath

Get (DesktopPath) & "/certificatesOfAttendance/" & "CCWTCertOfAttendance_" & StudentIDtoCustomer::First_Name & "_" & StudentIDtoCustomer::Last_Name & "_" & Course Registration::Course_ID_3 & ".pdf"

followed by Save Records as PDF: file:$exportPath

Is there a way to get Gmail to grab a newly created PDF and attach it via Send Mail?

All advice gratefully received.

I'm not a Mac guy at all but on Windows the Get ( DesktopPath ) function returns the path with a trailing forward slash (/). As used in your calculation that would put two slashes in in a row.

Just a guess. 

Are you talking about Gmail web client? If yes, I recommend setting up Gmail in a desktop mail client such as Apple Mail or Airmail, then you could make that your main email client and FileMaker should be able to send mail with it.

  • 1 month later...
  • Newbies
Set Variable [$PATH; Value: Get ( TemporaryPath ) & "yourDocumentName" & ".pdf"]

Save Records as PDF [Restore; With dialog:Off; "$PATH"; Records being browsed]

Send Mail [Send via SMTP Server; No dialog; To: $email; Subject: $subject; "$PATH"]

Use a temp path, save records as pdf, then use the temp path as the attachment.

Create an account or sign in to comment

Important Information

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

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.