Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (または `amp_is_request()`、正式には `is_amp_endpoint()`) の呼び出しが早すぎたため、正常に動作しません。 WordPress is currently doing the `plugins_loaded` hook. `wp`アクションの前にこの関数を呼び出すと、`WP_Query`と照会されたオブジェクトにアクセスできず、それが AMP 応答であるかどうかを判断するため、`amp_skip_post()`フィルターと AMP 対応トグルは考慮されません。 スラッグが「`google-analytics-for-wordpress`」のプラグインが原因のようです。投稿者に連絡してください。 Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function amp_is_available was called incorrectly. `amp_is_available()` (または `amp_is_request()`、正式には `is_amp_endpoint()`) の呼び出しが早すぎたため、正常に動作しません。 WordPress is currently doing the `plugins_loaded` hook. `wp`アクションの前にこの関数を呼び出すと、`WP_Query`と照会されたオブジェクトにアクセスできず、それが AMP 応答であるかどうかを判断するため、`amp_skip_post()`フィルターと AMP 対応トグルは考慮されません。 スラッグが「`google-analytics-for-wordpress`」のプラグインが原因のようです。投稿者に連絡してください。 Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wordpress/wp-includes/functions.php on line 6170
muttコマンドで添付ファイルを付けて送信 - シスメモ

シスメモ

Linux(CentOS)、Windows(サーバー/クライアント)、Yamaha RTX、その他の技術メモ

Linux-Other

muttコマンドで添付ファイルを付けて送信

投稿日:

環境:CentOS 6.3

muttを利用して、コマンドで添付ファイルを付けてメールを送信することができます。

muttはrpmforgeリポジトリからインストールします。

○インストール

yum install –enablerepo=rpmforge mutt

 

○利用方法
・オプション
-a file 添付ファイル名
-b address BCCアドレス
-c アドレス Ccアドレス
-F 任意の設定ファイルを利用
-n システム設定ファイルを利用しない
-s subject 件名

例:
mutt -n -F ./mutt.conf -s “テストメールです” hoge@example.com -a text.txt < ./message.txt



-Linux-Other

執筆者:


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

関連記事

/etc/passwd,/etc/groupだけでなく、LDAPのユーザー、グループも表示させる場合のコマンド

photo credit: *n3wjack’s world in pixels via photopin cc ■/etc/passwd,/etc/groupだけでなく、LDAPのユーザ …

no image

Dovecotで「pop3-login: Aborted login (tried to use disabled plaintext auth)」

Dovecotで「pop3-login: Aborted login (tried to use disabled plaintext auth)」とエラーが出てPOP3ログインが出来ない場合 とりあ …

no image

OpenSSLでクライアント証明書の発行時に「TXT_DB error number 2」とエラーが出る場合

■OpenSSLでクライアント証明書の発行時に「TXT_DB error number 2」とエラーが出る場合 keysディレクトリ内のindex.txtを削除してからtouchコマンドで再作成する。 …

OpenVPNで「Options error」

photo credit: solracarevir via photopin cc ■OpenVPNで「Options error」   事象: OpenVPNでの接続時に画面に何も表示さ …

OpenSSLでクライアント証明書の発行時に「TXT_DB error number 2」とエラーが出る場合

photo credit: FutUndBeidl via photopin cc ■OpenSSLでクライアント証明書の発行時に「TXT_DB error number 2」とエラーが出る場合 ke …