September 1, 20169 yr 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.
September 2, 20169 yr 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.
September 2, 20169 yr 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.
October 24, 20169 yr 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