mini_sendmail is a vary small application that will send a file via SMTP as an email.
你可以參考這個網站, 裡面有介紹下載, 安裝與英文版的使用說明
http://wiki.mattrude.com/index.php/Mini_sendmail
[使用 mini_sendmail 範例]
如果要透過mini_sendmail來發送信件訊息, 請執行以下的指令:
cat email.txt |mini_sendmail -ffrom-user@example.com -sSMTP_Server to-user@example.com
其中, email.txt 內容如下:
subject: You can now put anything here for the email Subject And here you will put the body of your message. [附上help訊息]mini_sendmail Manual File
mini_sendmail(8) mini_sendmail(8) NAME mini_sendmail - accept email on behalf of real sendmail SYNOPSIS mini_sendmail [-f<name>] [-t] [-s<server>] [-p<port>] [-T<timeout>] [-v] address ... DESCRIPTION With no flags, mini_sendmail reads its standard input up to an end-of- file and sends a copy of the message found there to all of the addresses listed. The message is sent by connecting to a local SMTP server. This means mini_sendmail can be used to send email from inside a chroot(2) area. -f Sets the name of the "from" person (i.e. the sender of the mail). -t Read message for recipients. To:, Cc:, and Bcc: lines will be scanned for recipient addresses. The Bcc: line will be deleted before transmission. -s Specifies the SMTP server to use. Without this it uses local- host. -p Specifies the port to use. Without this it uses 25, the stan- dard SMTP port. -T Specifies timeout - defaults to one minute. -v Verbose mode - shows the conversation with the SMTP server. SEE ALSO sendmail(8) AUTHOR Copyright © 1999 by Jef Poskanzer <jef@mail.acme.com>. All rights reserved. END 12 July 2001 mini_sendmail(8)