I have installed msmtp, and it seems to be working OK:
echo "Hello" | mail -s "Testing SmSMTP" [email protected]
The email arrives to destination, But the From field is a ugly email text like [email protected] .
I mean: [email protected] is correct, of course, but I would like the receiver to read some more professional John Smith - Sales Department <[email protected]> , like it can be done on any other email client.
What is the proper way to achieve this with MSMTP?
Further notes:
- I am running Ubuntu v20.04 .
- I have installed the packages
msmtp msmtp-mta mailutils.