I was trying to send an email to multiple persons using mailx
(mailx (GNU Mailutils) 3.4). I did that successfully on a previous version of Ubuntu, v16.04, and the script was working fine. Now I have Ubuntu 18.04 and the following problem:
mailx: unrecognized option -S
mailx: unrecognized option -S
mailx: unrecognized option -S
what should I do?
My script is as follow:
#!/bin/bash
FILE="speakers.csv"
while IFS=";" read name mailAdress
do
printf "Dear $name, \n\n something something... " | mailx -s "Title" -S smtp=smtps://mySMPTadress -S smtp-auth=login -S smtp-auth-user="MyUserName" -S smtp-auth-password='MyPassword' -S from="MyName <MyEmailAdress>" mailAdress
done < "$FILE"
file speakers.csv looks like this
Klaus A;klaus@*****.de
Alessandra B;alessandra@****.it
Serge C;serge@****.fr
mail
instead ofmailx
? maybe deprecated! – Sep 18 '18 at 11:45