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.

Two Server Server Side Scripts To Fetch Email

Featured Replies

I have two separated databases on the server each have a script for the server to fetch email from IMAP with their own account.

Our goal is to have nearly up to the minute results so Database A and B I have the scripts fire off at 1 and 2 minutes respectively however occasionally i get errors where one or both scripts time out. And this is concerning as Script B isn't fetching any results yet because we haven't

launched that email out, once we do and there is any measurable volume they may impact the process.

What way would be the best option to have server fetch mail from two different accounts into two different databases, getting mail every 60 to 120 seconds?

thanks

some mail servers won't accept such frequent connections. maybe that's why they time out?

Are you closing the connection each time by calling EmailDisconnect? Not sure if this will have any affect but if the switch happens rapidly multiple times there would be a lot of open connections otherwise.

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.