SyntaxFix
Write A Post
Hire A Developer
Questions
Here you are :
echo "Body" | mailx -r "FROM_EMAIL" -s "SUBJECT" "To_EMAIL"
PS. Body and subject should be kept within double quotes. Remove quotes from FROM_EMAIL and To_EMAIL while substituting email addresses.
FROM_EMAIL
To_EMAIL