Answer the question
In order to leave comments, you need to log in
How to specify the title and body of the letter when sending a letter from the console?
Postfix is installed on the server, it is necessary to send a message from the console, I do this:
sendmail -F "from console" [email protected]
Answer the question
In order to leave comments, you need to log in
#!/bin/bash
subject="test subject"
email_to="[email protected]"
message="test message"
echo "${message}" | /usr/bin/mail -s "${subject}" "${email_to}"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question