SendMail in BusyBox v1.19.3

Denys Vlasenko vda.linux at googlemail.com
Mon Jan 9 04:06:36 UTC 2012


On Tuesday 03 January 2012 00:47, Rick wrote:
> I'm having some difficulty in interpreting the latest usage syntax for
> SendMail. I'm only familiar with the version in the BusyBox of a couple
> years ago, which included more switches. The old syntax for my purposes was:
> 
> sendmail -S"smtp server address" -f"from email address" -F"From name"
> -d"sender's domain" -s"Subject" -m"content of the message"
> sendmailhere at domain.com
> 
> Of the above switches, apparently only -S and -f survive in the current
> version, depending on what -o "Various options" means. So, I'm a little
> puzzled about how to go about things now, particularly if there's no -m (I
> think redirection of a file containing the message might be involved now,
> but I failed at that as well).
> 
> Could someone list a concrete example for me?  Thanks.

sendmail command line was made more compatible with "standard" one -
which isn't doing any composition (it does not add From/To/Subject
lines etc, it simply sends the data supplied on stdin).
You need to add those lines yourself.

-- 
vda


More information about the busybox mailing list