From: ToddAndMargo ToddAndMargo@zoho.com
Anyone have a favorite command line outbound (smtp) email program that is easy to use?
I'd like to be able to put everything on the command line and not have configuration files to deal with.
I have looked at mailx (snail) and msmtp, but am a bit overwhelmed by them
I use sendEmail, as follows:
sendEmail -f ToddAndMargo@gozo -t "${address of recipient}" -u "${subject}" -m "${message}" -a "${attachment-filename}" -s smtp.zoho.com:587 -xu ToddAndMargo@zoho.com -xp [internal password of the sender's account]
-f from email address -t to email address>
Many thanks, -T
-u subject -m message -a added attachment, if any -s sender smtp account port -xu sender's email account at zoho.com -xp password
Easily scripted and can send multiple emails individually when fed from a list file (...while read line...). All entries are scriptable, so different recipients can receive different subject,message and attachments as desired
R. Geoffrey Newbury
On 3/24/25 10:29 AM, R. G. Newbury wrote:
From: ToddAndMargo ToddAndMargo@zoho.com
Anyone have a favorite command line outbound (smtp) email program that is easy to use?
I'd like to be able to put everything on the command line and not have configuration files to deal with.
I have looked at mailx (snail) and msmtp, but am a bit overwhelmed by them
I use sendEmail, as follows:
sendEmail -f ToddAndMargo@gozo -t "${address of recipient}" -u "${subject}" -m "${message}" -a "${attachment-filename}" -s smtp.zoho.com:587 -xu ToddAndMargo@zoho.com -xp [internal password of the sender's account]
-f from email address -t to email address>
Many thanks, -T
-u subject -m message -a added attachment, if any -s sender smtp account port -xu sender's email account at zoho.com -xp password
Easily scripted and can send multiple emails individually when fed from a list file (...while read line...). All entries are scriptable, so different recipients can receive different subject,message and attachments as desired
R. Geoffrey Newbury
Thank you!
On 3/24/25 10:29 AM, R. G. Newbury wrote:
From: ToddAndMargo ToddAndMargo@zoho.com
Anyone have a favorite command line outbound (smtp) email program that is easy to use?
I'd like to be able to put everything on the command line and not have configuration files to deal with.
I have looked at mailx (snail) and msmtp, but am a bit overwhelmed by them
I use sendEmail, as follows:
sendEmail -f ToddAndMargo@gozo -t "${address of recipient}" -u "${subject}" -m "${message}" -a "${attachment-filename}" -s smtp.zoho.com:587 -xu ToddAndMargo@zoho.com -xp [internal password of the sender's account]
-f from email address -t to email address> -u subject -m message -a added attachment, if any -s sender smtp account port -xu sender's email account at zoho.com -xp password
Easily scripted and can send multiple emails individually when fed from a list file (...while read line...). All entries are scriptable, so different recipients can receive different subject,message and attachments as desired
R. Geoffrey Newbury
This is what I wound up using:
smtp="-S smtp=$1 -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user=xxxxx@zohomail.com -S smtp-auth-password=yyyyy -S ssl-verify=ignore"
echo -e $msg | /usr/bin/mailx $smtp -s $IAm" Disk Status" -r $From $To
I am confused to your use of -xp in place of -S smtp-auth-password=yyyyy
and -xu in place of -S smtp-auth-user=xxxxx@zohomail.com