Can I make SSMTP to automatically set the "To:" header?
4
votes
2
answers
5385
views
I'm using the ssmtp package to send e-mail via g-mail. Everything is working fine with it - the only strange thing is that if I send mail via the command line, the "to field" is funky.
ssmtp me@domain.com < message.txt
Basically the "to" field will just say "undisclosed recipients"
I read that you can set headers containing a "To:" field, but that seems overly complicated when I've used the
mail
command on other systems, I it will do this automatically.
Is there an easier way to send mail via the command line with ssmtp
- but without having to change the above syntax or specify additional parameters? (possibly a config file to set the "to" address as whatever one was specified.
Asked by cwd
(46887 rep)
Jun 29, 2012, 06:42 PM
Last activity: Dec 6, 2024, 03:46 AM
Last activity: Dec 6, 2024, 03:46 AM