Send Email from Script

Feb 5, 2023
79
8
13
Österreich
Good morning,

Is it possible to send emails via shell using the email data configured via the web GUI?

I would like to send an email from a script, if that would work without having to go through the detour with Postfix.
 
Good morning,

Is it possible to send emails via shell using the email data configured via the web GUI?

I would like to send an email from a script, if that would work without having to go through the detour with Postfix.
No problem.

cat /root/somebody.log | mutt -s "somesubject" -a /root/somattachment.txt -- someone@somewhere.com
f
 
Last edited:
Am I understanding correctly that if I install mutt, I don't need to configure anything else and can use the configuration from the GUI I created? Otherwise, I don't see any benefit, or am I missing something here?