欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

sendEmail-參數(shù)的示例分析

本篇文章給大家分享的是有關(guān)sendEmail-參數(shù)的示例分析,小編覺得挺實用的,因此分享給大家學習,希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。

讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價值的長期合作伙伴,公司提供的服務(wù)項目有:主機域名網(wǎng)站空間、營銷軟件、網(wǎng)站建設(shè)、永城網(wǎng)站維護、網(wǎng)站推廣。

還在為Linux下沒有便捷的郵件程序苦惱,還在為復雜的郵件服務(wù)器架設(shè)Google N多網(wǎng)頁? 對于小型,便捷的Linux下命令行郵件程序,sendEmail使得這一切變得輕松可行。一起來看看吧。

點擊(此處)折疊或打開

  1. [python] view plain copy print?

  2. 一、sendEmail介紹

  3.    SendEmail is a lightweight, command line SMTP email client. If you have the need to send email from a command line, this

  4. free program is perfect: simple to use and feature rich. It was designed to be used in bash scripts, batch files, Perl

  5. programs and web sites, but is quite adaptable and will likely meet your requirements. SendEmail is written in Perl and is

  6. unique in that it requires NO MODULES. It has an intuitive and flexible set of command-line options, making it very easy to

  7. learn and use.

  8.     SendEmail is licensed under the GNU GPL, either version 2 of the License or (at your option) any later version.

  9.     [Supported Platforms: Linux, BSD, OS X, Windows 98, Windows NT, Windows 2000, & Windows XP]

  10.   

  11.   總的來說sendEmail簡單,輕量級,命令行,可伸縮,跨平臺。

  12.   

  13. 二、下載與安裝

  14.   下面的地址是sendEmail的下載及詳細說明

  15.   http://caspian.dotconf.net/menu/Software/SendEmail/

  16.   

  17.   下面是安裝描述,總共四個步驟就搞定。

  18.   ------------------

  19.   Installation

  20.   ------------------

  21.     

  22.   SendEmail is a perl script/program, and only needs to be copied to a directory

  23.   in your path to make it accessible. Most likely the following steps will

  24.   be sufficient:

  25.     

  26.   1) Extract the package

  27.       tar -zxvf sendEmail-v1.XX.tar.gz

  28.     

  29.   2) Copy the sendEmail script to /usr/local/bin

  30.       cp -a sendEmail-v1.XX/sendEmail /usr/local/bin

  31.     

  32.   3) Make sure its executable

  33.       chmod +x /usr/local/bin/sendEmail

  34.     

  35.   4) Run it

  36.       sendEmail

  37.         or

  38.       /usr/local/bin/sendEmail

  39.   

  40. 三、用法

  41.   直接輸入sendEmail,將出現(xiàn)該工具的用法介紹,如下所示。由于用法也簡單明了,因此不一一解釋

  42.   robin@SZDB:~/dba_scripts/sendEmail-v1.56> ./sendEmail

  43.     

  44.   sendEmail-1.56 by Brandon Zehm <caspian@dotconf.net>

  45.     

  46.   Synopsis: sendEmail -f ADDRESS [options]

  47.     

  48.     Required:

  49.       -f ADDRESS from (sender) email address

  50.       * At least one recipient required via -t, -cc, or -bcc

  51.       * Message body required via -m, STDIN, or -o message-file=FILE

  52.     

  53.     Common:

  54.       -t ADDRESS [ADDR ...] to email address(es)

  55.       -u SUBJECT                message subject

  56.       -m MESSAGE                message body

  57.       -s SERVER[:PORT] smtp mail relay, default is localhost:25

  58.     

  59.     Optional:

  60.       -a   FILE [FILE ...] file attachment(s)

  61.       -cc  ADDRESS [ADDR ...] cc  email address(es)

  62.       -bcc ADDRESS [ADDR ...] bcc email address(es)

  63.       -xu  USERNAME             username for SMTP authentication

  64.       -xp  PASSWORD             password for SMTP authentication

  65.     

  66.     Paranormal:

  67.       -b BINDADDR[:PORT] local host bind address

  68.       -l LOGFILE                log to the specified file

  69.       -v                        verbosity, use multiple times for greater effect

  70.       -q                        be quiet (i.e. no STDOUT output)

  71.       -o NAME=VALUE             advanced options, for details try: --help misc

  72.           -o message-content-type=<auto|text|html>

  73.           -o message-file=FILE -o message-format=raw

  74.           -o message-header=HEADER -o message-charset=CHARSET

  75.           -o reply-to=ADDRESS -o timeout=SECONDS

  76.           -o username=USERNAME -o password=PASSWORD

  77.           -o tls=<auto|yes|no> -o fqdn=FQDN

  78.     

  79.     

  80.     Help:

  81.       --help                    the helpful overview you're reading now

  82.       --help addressing         explain addressing and related options

  83.       --help message            explain message body input and related options

  84.       --help networking         explain -s, -b, etc

  85.       --help output             explain logging and other output options

  86.       --help misc               explain -o options, TLS, SMTP auth, and more

  87.   

  88.   查看詳細的幫助文件,如下方式:

  89.   ./sendEmail --help addressing

  90.   ./sendEmail --help message

  91.   

  92. 四、示例

  93.   #發(fā)送者使用任意的郵箱方式發(fā)送郵件

  94.   robin@SZDB:~> sendEmail -f robinson@oracle.com \

  95.   > -t robinson.cheng@trade.com \

  96.   > -u "Test Mail" \

  97.   > -m "This is a test mail from Robinson"

  98.   Dec 18 14:10:23 szdb sendEmail[18494]: Email was sent successfully!

  99.     

  100.   #發(fā)送者使用一個真實存在的互聯(lián)網(wǎng)郵件服務(wù)器來發(fā)送郵件

  101.   robin@SZDB:~> sendEmail -f rocket010824@163.com \

  102.   > -t robinson.cheng@trade.com \

  103.   > -u "Test Mail" \

  104.   > -s smtp.163.com \

  105.   > -xu jackson \

  106.   > -xp temp_000 \

  107.   > -m "This is test mail from Robinson"

  108.   Dec 18 14:13:24 szdb sendEmail[18500]: Email was sent successfully!

  109.     

  110.   發(fā)送給多個郵件接收人

  111.   robin@SZDB:~> sendEmail -f robinson@oracle.com \

  112.   > -t "Robinson cheng <robinson.cheng@trade.com>" jackson@163.com \

  113.   > -u "Send email to mutiple people" \

  114.   > -m "This is a test mail"

  115.   Dec 18 14:24:57 szdb sendEmail[18537]: Email was sent successfully!

  116.     

  117.   使用抄送,密送接收人

  118.   robin@SZDB:~> sendEmail -f robinson@oracle.com \

  119.   > -t "Robinson cheng <robinson.cheng@trade.com>" \

  120.   > -cc jason.wu@trade.com \

  121.   > -bcc jackson@163.com \

  122.   > -u "Test mail " \

  123.   > -m "This is a test mail"

  124.     

  125.   發(fā)送帶有附件的郵件

  126.   robin@SZDB:~> sendEmail -f robinson@oracle.com \

  127.   > -t "Robinson cheng <robinson.cheng@trade.com>" \

  128.   > -cc jason.wu@trade.com \

  129.   > -u "Test mail with multi attached" \

  130.   > -m "This is a test mail with multi attached" \

  131.   > -a /users/robin/addmrpt_1_11584_11649.txt "/users/robin/Temp log"

  132.   Dec 18 14:43:35 szdb sendEmail[18664]: Email was sent successfully!

  133.     

  134.   #使用文件內(nèi)容作為郵件的body

  135.   robin@SZDB:~> sendEmail -f robinson@oracle.com \

  136.   > -t "Robinson cheng <robinson.cheng@trade.com>" \

  137.   > -u "Test mail and the body from file contents" \

  138.   > -o message-file=/users/robin/addmrpt_1_11584_11649.txt

  139.   Dec 18 14:50:39 szdb sendEmail[18715]: Email was sent successfully!

  140.     

  141.   robin@SZDB:~> cat addmrpt_1_11584_11649.txt | sendEmail -f robinson@oracle.com \

  142.   > -t "Robinson cheng <robinson.cheng@trade.com>" \

  143.   > -u "Test mail and the body from file contents"

  144.   Reading message body from STDIN because the '-m

以上就是sendEmail-參數(shù)的示例分析,小編相信有部分知識點可能是我們?nèi)粘9ぷ鲿姷交蛴玫降摹OM隳芡ㄟ^這篇文章學到更多知識。更多詳情敬請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

分享名稱:sendEmail-參數(shù)的示例分析
本文地址:http://chinadenli.net/article12/pigpgc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)微信公眾號網(wǎng)站制作手機網(wǎng)站建設(shè)企業(yè)建站定制開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)