Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Check email script for server problem

Featured Replies

I recently started using this plug-in and have sucessfully setup fm to send emails. I also want to use a scheduled script on Fm Server 9 to check every 5 mins for incoming email. I have had a look at the examples in the documentation with the plug in but it always pulls down the same emails over and over , not marking them as read. I am using:

Set Variable $$import ; Value:EmailReadMessages ("mailbox=INBOX" ; "to=my_email_address" ; "readonly=false" ; "viewed=false" )

and after using a few Set Field comands to get the info in the fields i am using:

Set Variable [$result ; Value:EmailMessageSetFlag ( "read" )

to mark them as read so that they don't get pulled in again

Can anybody see where I am going wrong?

Any help would be appreciated

Robert,

Are the messages still showing up as unread on the server after this?

Also, are you using IMAP or POP to retrieve messages?

After you call EmailSetMessageFlag, what is the value of $result? If it's "ERROR", call EmailLastError to get the error text.

  • Author

thanks for the reply, I am assuming that they staying unread which is why the same emails keep coming in .I am using a POP type account.As for the the error message, I will try calling the error and report back.

I would show you my script but I can't find an easy way of copying it from FM and pasting it here.

thanks

  • Author

I have changed the script to call an error via custom dialog and using a client (beacause FM server won't show Custom Dialog) but there are no errors.

This is most fustrating

Robert, I just posted a new version of the email plugin that has a new 'report a bug' button in the plugin preferences screen. Please try your script in FileMaker client, and if it is till not working, use that button to report it. This will send us all of the config info and the log file so that we can try to troubleshoot.

This will send us all of the config info and the log file so that we can try to troubleshoot.

This is a great idea, Jesse, thank you!

  • 2 months later...
  • Author

Just to update you , I downloaded the latest version of the plugin and the problem seems to have gone!

thanks

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.