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.

Sending via SMTP Server. Causes? And a question.

Featured Replies

When I send via SMTP server through a database on FM Server, is the IP address that sends out the SMTP command to the server that of the local computer on which the FM client is hosted, or does it correspond to the remote server on which FM Server is hosted? My impression is that it is the IP address of the local computer, since I have always assumed that the software is actually run locally, even if it is hosted remotely. Am I right?

Send to SMTP Server no longer works for me, and I suspect the problem stems from the tendency of my university to go overboard on protection after some serious ransomware attacks a couple of years ago among other threats. My tech support person at the university says that I must always be within the firewall where the Server sits, but that doesn't make any sense to me, because except for running Server side scripts, as we do once a day, I would never have been able even, e.g., to develop and test any of my scripts that sends emails via SMTP. I develop entirely locally.

Has the FM Support Team encountered instances of Send to SMTP no longer working as a result of creeping over-securitization? What might be some other reasons for sudden failure?

I know that sending by e-mail client is an option, but I have batch mail functions that depend on sending via SMTP. What do you advise?

I’ve switched my clients to api services for email. SendGrid, postmark, ms graph. They are easy to implement and avoid all the hassle of smtp, plus you get html, templates, etc. 

You can see SendGrid, ms graph api integration code in our or product , LedgerLink. It’s a free download and completely unlocked. Check it out for just that. 
 

also this, 

 

  • Author

Thanks for this.

Would I, then, have to replace each Send Mail in my code with a different script step? I gather most of the work would be setting the service up and learning it. Presumably these are paid services. It's possible my College already pays for MailChimp.

I'm guessing one can make the code sufficiently robust to survive a future switch to a different service.

I'd still like to try to salvage SMTP if I possibly can simply because of the time that would be involved in changing over. I set up alternative scripts that use the client's email program, so that may need to be our fallback. But doing our batch sends (25 to 30 emails) will be inelegant.

We also have an automated, once a day, script that sends mail, and it still works at least. But even it stopped working a year ago for security reasons, and I had to switch to a different SMTP server at our university and have a permission set up for mail from our FM Server's IP. The problem with SMTP mail from FM clients is, of course, that it can come from any IP address. I am quite sure IT will determine that increased security protocols are the source of the current failure.

Yes, they are paid services, although some offer a limited free tier.
 

I now funnel all send email calls through to one script. As I said, LedgerLink is an example for the scripts. When I replaced the send mail script step, I had scattered them everywhere. I found them using FMPerception and refactored to the one master script that calls the api. 

  • Author

Thanks for the tip on centralizing the sending of mail in one script. Where do I find the relevant information re LedgerLink? Not quite sure what it is. https://www.ledgerlink.co doesn't seem to be  primarily about mail. We don't have budget. Our resource is the time of the people who organize the teaching initiative FM supports and also code FM (me). But, again, if my college already subscribes to a suitable api service, then budget may not be a problem if we use that service.

  • Author

Got it. Many 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.