Sendmail from Server

I have a client who uses gmail sendmail on the server to get nightly status reports, and to flag when certain data gets updated. It's a minimal number of emails (<50 a week) and all internal, but critical.

Gmail just changed their policy to no longer allow "less secure clients" to send emails, which includes Filemaker. Here's a great video about it with workarounds:

Things I've tried:

Amazon SES - One school I tried this with worked, the other was rejected for some unknown reason.

Whatever@gmail.com - Not possible without Amazon SES
Whatever@customdomain_throughgmail.com - not possible in my district
Whatever@customdomain_siteground.com - works locally, but not on server (see below)

For other clients I just set up Amazon SES and relayed it through an email... but for some reason Amazon rejected my application to have SES for this email, claiming it "could negatively impact Amazon"... and said they can't provide any more details.

So I made an email using a third party email service (SiteGround.com), and the emails send fine when I send them from my desktop, but I've tried sending from two hosted servers (fmphost.com and 360works.com) and the emails simply don't go through (see below). The email service providers claim the problem is with the server or the host, and the hosts claim the problem is with the email service provider. The emails don't make it to the logs of the provider, so they're getting blocked/ fail somewhere along the way.

Failing scripts on SiteGround email hosting
I have a script called Email_JSON where I pass in $to $subject $body and it sends the email. All SMTP settings are done in this script.

I have a second "launcher" script which performs Email_JSON twice, once locally (which runs correctly) and once on the server (which returns an error 1636).

Based on what I found online a 1636 error is a "proxy configuration error"... and I need to "change my windows settings" but no one seems to know what that means.

Has anyone gotten this to work somewhere else? If someone has an affordable email host I can set it up at I will.

2 Likes

I have used office 365 (which still supports SMTP) for programmatic emails and also my own Linux server. Both options have worked great for a long time.

1 Like

See SMTP Server for FMS suggestions - #19 by menno for information on how to still use Google.

Thanks. IT for the district won’t allow that.

how did you try if it works from FMServer? I had issues and couldn't get the test succeeding within the admin console after gmail changes at beginning of Jun 2022, but to my surprise the server sent me an email error notification later and since then it works again.

1 Like

Thanks @OliverBarrett Office 365 worked fine (just made a free account and it works like a charm).

@FileKraft Odd... if it breaks again I recommend Office 365. It worked great. It just stopped sending emails last week from two of my applications (hosted with 2 different hosts)...

1 Like

That's great!

The OAUTH2 stuff is too much pain for too little reward (for example, manual user token entry from browser, etc.). In my view, it's more important to encrypt the email end-to-end. With strong passwords, 2FA, etc., and RSA techniques applied, I think SMTP will be a good solution for a long time. I know some disagree, but there you are. :slight_smile:

Have a good one!

1 Like