關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 文字模式發送帶附件電郵

    Posted on October 6th, 2007 Sam Tang 2 comments

    在 Linux/FreeBSD 的文字模式或 shell script 要發送帶有附件的電郵,可以透過 Mutt 實現,Mutt 是一個功能豐富的文字模式電郵軟件。FreeBSD 可以用 ports 安裝:

    # cd /usr/ports/mail/mutt
    # make install clean

    以下是 mutt 的使用方法:

    $ mutt -s "Email Subject" -a attachment.tar.gz to@emailaddress.co

    它的參數 -s 是郵件標題,-a 是發送的附件。如要同時發送多個附件,只要每個附件使用 -a:

    $ mutt -s "Email Subject" -a file1.tar.gz -a file2.tar.gz to@emailaddress.co

     

    2 responses to “文字模式發送帶附件電郵”

    1. 請問這個 shell script 顯示 plugin 哪裡可以下載@@?

    2. 請問我想將2個LCD MONS連在一起,PC是DELL VISTA,HOME BASIC,只是用來看東西,不是打機,有甚麼牌子,MODEL,價錢,的顯示卡可介紹,沒有BUDGET,謝謝,

    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word