Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailx missing the from switch in latest version #110

Open
phases78 opened this issue Sep 1, 2021 · 2 comments
Open

Mailx missing the from switch in latest version #110

phases78 opened this issue Sep 1, 2021 · 2 comments

Comments

@phases78
Copy link

phases78 commented Sep 1, 2021

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
Copy link

I'm having the same issue here.

@segmueller
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants