June 17, 201213 yr Hi - I'm experimenting with the Email Plugin to see if it would work for us. Using the Plugin, when I view an email with an attachment, where the attachment name would be it says, "Not Downloaded:211206~1.pdf". When I click that, it displays an alert that says, "Could not locate messageID <B0003996844@vljcms00> in mailbox INBOX. Maybe this message was deleted?" In the "Attachments" table, there are no records yet. When I view the Inbox the old way, this message is still there -- has not been deleted. Why would it think the message was deleted or how can I view the attachments?
June 19, 201213 yr There is an optional parameter "attachments" in the EmailReadMessages function that when set to "true" will download the attachments. You can then get a list of attachments (paths to the downloaded files) using the EmailReadMessageValue ( "attachments" ) function. Then to get those into a container field in FileMaker you'd use the EmailReadAttachment ( path ) and set the field to what is returned by this function (the downloaded attachment file).
July 25, 201213 yr Author Thank you! In the EmailReadMessages function, the parameter "attachments" is set to "true". It looks like this: EmailReadMessages( "mailbox=" & msg_MBOX::name ; "readonly=true" ; "messageId=" & MSG::messageId ; "attachments=true" ; "progress=true" ) A comment in the sample code says, "#Call EmailReadNextMessage. If this fails, it means the message doesn't exist on the server" But the message is still in the Google Apps account -- why might it say it doesn't exist on the server?
July 26, 201213 yr Are you connecting to an IMAP or POP mail server? It may be useful to send me the plugin log ([email protected]) as well.
July 26, 201213 yr Author For "Inbound Server (Receiving)", it says "pop.gmail.com:[my email address]" so I think that means connecting to POP mail server? I will send log.
August 3, 201213 yr Author Brent, at your suggestion, I switched this to IMAP and we're downloading attachments like crazy. Neat plugin -- thank you!
Create an account or sign in to comment