I made an automation script for a few customers. One nice feature is that when it ran into an error it sent me an email. I was trying to make it generic, so I used a bunch of terminal commands to turn on postfix. It worked well in Yosemite but now when an error presents itself I get 40 emails instead of 1. Apparently, the smtp wasn’t closing the session. This morning the email server started merging emails from different sources, yikes! I now have another script I will soon roll out to 25 users. The question I have is what do you folks like for sending emails ?
Scripting Mail.app has always annoyed me but its doable. Of course, there is the issue of what mail client the users uses… Do I sense the mail client then have different handlers for each option? (Outlook, Thunderbird, Mailsmith, etc., etc…)
Is there a really sweet implementation in Unix that does things properly? (And closes sessions.)
Someone suggested an OSAX - I had forgotten about those…
Something else I’m not thinking about?
What do you folks like?