# Sendmail from Server

**URL:** <https://the.fmsoup.org/t/sendmail-from-server/2957>\
**Category:** Questions\
**Tags:** sendmail, gmail\
**Created:** [June 17, 2022, 1:46pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957 "2022-06-17T13:46:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonMark](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JasonMark](https://the.fmsoup.org/u/JasonMark)\
**Post date:** [June 17, 2022, 1:46pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/1 "2022-06-17T13:46:58Z")

</div>

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:

> <https://twitter.com/filemakervideos/status/1529700168488067073?s=10&t=nen_HFgyB1lhfeS5cZk2ug>

Things I've tried:

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

**[Whatever@gmail.com](mailto: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](http://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](http://fmphost.com) and [360works.com](http://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.

---

<div class="post-metadata">

**Author:** ![OliverBarrett](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OliverBarrett](https://the.fmsoup.org/u/OliverBarrett)\
**Post date:** [June 17, 2022, 2:40pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/2 "2022-06-17T14:40:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![planteg](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/planteg/32/627_2.png) [@planteg](https://the.fmsoup.org/u/planteg)\
**Post date:** [June 17, 2022, 4:11pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/3 "2022-06-17T16:11:12Z")

</div>

See [SMTP Server for FMS suggestions - #19 by menno](https://the.fmsoup.org/t/smtp-server-for-fms-suggestions/2936/19) for information on how to still use Google.

---

<div class="post-metadata">

**Author:** ![JasonMark](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JasonMark](https://the.fmsoup.org/u/JasonMark)\
**Post date:** [June 17, 2022, 4:31pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/4 "2022-06-17T16:31:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![FileKraft](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/filekraft/32/1183_2.png) [@FileKraft](https://the.fmsoup.org/u/FileKraft)\
**Post date:** [June 17, 2022, 5:36pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/5 "2022-06-17T17:36:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JasonMark](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JasonMark](https://the.fmsoup.org/u/JasonMark)\
**Post date:** [June 17, 2022, 6:06pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/6 "2022-06-17T18:06:27Z")

</div>

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)...

---

<div class="post-metadata">

**Author:** ![OliverBarrett](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OliverBarrett](https://the.fmsoup.org/u/OliverBarrett)\
**Post date:** [June 17, 2022, 6:13pm UTC](https://the.fmsoup.org/t/sendmail-from-server/2957/7 "2022-06-17T18:13:14Z")

</div>

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. 🙂

Have a good one!
