This first version just covers the sending of HTML emails and we’ll be providing later versions of this file in future articles. Please download the example file FM2Gmail for a working demo. I implemented their authentication and inbox routine and then added the techniques I’m going to share here. Basically, they had already done a lot of the work we needed. This article provided great techniques for authenticating to Google as well as creating an inbox in FileMaker that would import Gmails with their attachments. Fortunately, right about this time, dbservices published a great blog post and example file on integrating with the Gmail API. The main reason the client wanted to go the Gmail route was to have seamless integration with their native Gmail experience at first they weren’t that interested in threads or large attachments, but those features soon became important once they started emailing from within FileMaker.īefore we started, the client and I discussed which route we wanted to take, like using a plug-in or rolling our own. I recently had the opportunity to build a comprehensive Gmail integration into a client’s system. Step-by-step instructions and an unlocked example file follow: And, since the Insert From URL script step is supported natively across the whole FileMaker platform, the techniques shown here work on the Server, Go, FileMaker Cloud and WebDirect. This technique requires FileMaker 16 or higher since we’ll be using the advanced cURL options introduced in FileMaker 16. This approach provides a first-rate email experience that is not available using the native Send Mail script step. ![]() In future articles, I’ll examine sending large emails (35MB) with multiple attachments, resumable uploading, and managing threads. In this article, we’re going to look at sending HTML emails. We’ll provide free example files for each post and these examples will all use the native Insert From URL script step so there won’t be any plug-ins required. Copy the scripts into the folder.This is the first in a series of articles on using the Gmail API from FileMaker.From the script menu, choose Open Scripts Folder > Open Mail Scripts Folder.Under General, click the Show Script Menu in the Menu Bar checkbox.Select AppleScript Editor > Preferences from the menu bar.Launch AppleScript Editor in /Applications/Utilities.You can quickly and easily run them from the system-wide AppleScript menu. Set read status of every message of theMailbox to true ProcessMailbox(theCurrentSubMailbox, processSubMailboxes) of me ![]() Set theCurrentSubMailbox to item a of theSubMailboxes Repeat with a from 1 to length of theSubMailboxes Set theSubMailboxes to every mailbox of theMailbox On processMailbox(theMailbox, processSubMailboxes) ProcessMailbox(theCurrentMailbox, processSubMailboxes) of me Set theCurrentMailbox to item a of theSelectedMailboxes ![]() Repeat with a from 1 to length of theSelectedMailboxes Set theSelectedMailboxes to selected mailboxes Do you want to continue?" buttons )) = "Yes" Set read status of every message of inbox to trueĭisplay alert "Please note!" message "This script may take a while if you have a ton of mailboxes. ![]() At the request of MacSparky, I've put together a few AppleScripts for Mac Mail users, to mark messages as read.
0 Comments
Leave a Reply. |