hollyheadhunter Posted June 17, 2012 Posted June 17, 2012 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?
wbasham Posted June 19, 2012 Posted June 19, 2012 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).
hollyheadhunter Posted July 25, 2012 Author Posted July 25, 2012 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?
wbasham Posted July 26, 2012 Posted July 26, 2012 Are you connecting to an IMAP or POP mail server? It may be useful to send me the plugin log ([email protected]) as well.
hollyheadhunter Posted July 26, 2012 Author Posted July 26, 2012 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.
hollyheadhunter Posted August 3, 2012 Author Posted August 3, 2012 Brent, at your suggestion, I switched this to IMAP and we're downloading attachments like crazy. Neat plugin -- thank you!
Recommended Posts
This topic is 4496 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 accountSign in
Already have an account? Sign in here.
Sign In Now