Matty9191 / ssl-cert-check

Send notifications when SSL certificates are about to expire.
GNU General Public License v2.0
719 stars 285 forks source link

Mailx missing the from switch in latest version #110

Open phases78 opened 3 years ago

phases78 commented 3 years ago

Hey all first time poster, I have been using this script a couple years, thank you very much for it. Today I upgraded to the latest version, I was on 3.30. For this latest version, in order to get it to send as the specified from email address, I had to edit the send_mail() function to include the switch: -r "$FROM" ---for mailx

Hope this helps, thank you,

steve1515 commented 2 years ago

I'm having the same issue here.

segmueller commented 1 year ago

Hi,

on Ubuntu 22.04 Server is the -r option not working.

As mentioned on https://stackoverflow.com/a/18490580 the -a will also work. Therefor line 398 (on Commit https://github.com/Matty9191/ssl-cert-check/tree/967b93707f53cfdfefd61e074f18348f1f82bab9) will be: echo "$MSG" | "${MAIL}" -a "From: $FROM" -s "$SUBJECT" "$TO" @steve1515 which system u are using? Can u please check this on an not debian based system?