This is an all-in-one command that sends email to $TO_EMAIL_ADDRESS . You need to also replace these $FROM_EMAIL_ADDRESS and $FRIENDLY_NAME variables with your email and name. $ mailx -v -s "$EMAIL_SUBJECT" \ -S smtp=smtp://smtp.ust.hk \ -S from="$FROM_EMAIL_ADDRESS($FRIENDLY_NAME)&qu...