swaks - SMTP command-line test tool tokyocabinet-bin - Tokyo Cabinet Database Utilities

shell> apt-get install swaks
shell> apt install tokyocabinet-bin
shell> swaks --to [email protected] --server test-server.example.net
shell> swaks --to [email protected] --from [email protected] --auth CRAM-MD5 --auth-user [email protected] --header-X-Test "test email"
shell> swaks --to [email protected] --from [email protected] --auth --auth-user=me --auth-password= -tls --server smtp.gmail.com:587 --header ""
shell> swaks --to [email protected],[email protected]
shell> SWAKS_OPT_to='[email protected],[email protected]' swaks

shell> echo "--to [email protected],[email protected]" >> .swaksrc
shell> swaks --config .swaksrc

shell> swaks --add-header "X-Test-Header: foo"
shell> swaks --h-Subject "Hello World"

$HOME/.swaksrc

shell> swaks --attach-type text/html --attach report.html
shell> swaks --body report.html \
--add-header "MIME-Version: 1.0" \
--add-header "Content-Type: text/html"

tcucodec - popular encoders and decoders

中文

shell> tcucodec quote report.html > my-email.html
shell> swaks --body my-email.html \
--header "Subject: Hello World" -S \
--add-header "MIME-Version: 1.0" \
--add-header "Content-Type: text/html; charset=UTF-8" \
--add-header "Content-Transfer-Encoding: quoted-printable" \
--to [email protected] \
--server test-server.example.net
shell> curl www.example.com/mypage | swaks -f [email protected] -t [email protected] --attach-type text/html --attach -
shell> file --mime-type example_image.png | sed 's/.*: //'

shell> swaks -s test-server.example.net -p 25 \ 
-t [email protected] -f [email protected] \
--header "Subject: Hello World" -S \
--protocol ESMTP -a -au me -ap passwd  \
--body "This is a test mailing" \
--body "Hello, this is an e-mail. I hope you like it ;-)" \
--attach-type text/html --attach report.html \
--attach-type text/html --attach report.html

-S, --silent [level]

-d, --data [data-portion]

shell> swaks --from [email protected] --h-From: '"Me" <[email protected]>'

--protocol LMTP --protocol ESMTP --protocol SMTP

:books: 參考網站:

powered by Gitbook最後更新: 2017-08-25 10:06:20

results matching ""

    No results matching ""