Jump to content

Attach PDF to Google Mail via Filemaker Send Mail


This topic is 2733 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 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.

Link to comment
Share on other sites

This topic is 2733 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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