I configured my ssmtp as below:
ssmtp.conf
root=postmaster
mailhub=smtp.office365.com:587
Hostname=localhost
FromLineOverride=YES
[email protected]
AuthPass=mypassword
UseSTARTTLS=YES
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
revaliases
root:[email protected]:smtp.office365.com:587
mail code is:
echo "HTML formatted message goes here like <b>Bold</b><br /><i>Italic</i>" | mail -s "$(echo -e "Subject \nContent-Type: text/html")" -r [email protected] [email protected].
Before configuring ssmtp it was working fine now it is sending HTML like <b>Bold</b> code but I want like Bold using ssmtp with mail(sendmail).