do-send-email

指定したサーバに電子メール通知を送信します。SMTPサーバでの認証のために、idおよびpassword属性によるオプションの資格情報を使用できます。type属性で、電子メールメッセージにプレーンテキストとHTMLデータのどちらが含まれているかを指定します。<arg-string>および対応するタグ名の属性内でさまざまな電子メールアドレス、件名、およびメッセージを指定できます。

備考

タグ名

説明

to

電子メールの受信者リストにアドレスを追加します。複数のインスタンスを指定できます。

cc

電子メールのCCの受信者リストにアドレスを追加します。複数のインスタンスを指定できます。

bcc

電子メールのBCCの受信者リストにアドレスを追加します。複数のインスタンスを指定できます。

from

電子メールの発信アドレスとして使用するアドレスを指定します。

reply-to

電子メールメッセージの返信アドレスとして使用するアドレスを指定します。

subject

電子メールの件名を指定します。

メッセージ

電子メールメッセージの内容を指定します。

encoding

電子メールメッセージで使用する文字エンコードを指定します。

custom-smtp-header

電子メールメッセージに追加するカスタムSMTPヘッダを指定します。

<do-send-email server="smtp.company.com" id="user" password="emailpwd"type="text">  <arg-string name="to"> <token-text>to_user1@company.com</token-text>  </arg-string> <arg-string name="to"> <token-text>to_user2@company.com</token-text>  </arg-string> <arg-string name="cc"> <token-text>cc_user@company.com</token-text>  </arg-string> <arg-string name="bcc"> <token-text>bcc_user@company.com</token-text>  </arg-string> <arg-string name="from"> <token-text>from_user@company.com</token-text>  </arg-string> <arg-string name="subject"> <token-text>This is the email subject</token-text>  </arg-string> <arg-string name="message"> <token-text>This is the email body</token-text>  </arg-string></do-send-email >

内容に使用できる要素

要素

説明

arg-string

arg-password

属性

属性

有効値

デフォルト値

disabled

false

id

CDATA SMTPサーバのユーザアカウントです。変数の拡張がサポートされます。

#IMPLIED

password

CDATA

SMTPサーバのユーザパスワードです。非推奨。<arg-password>を<token-named-password>と共に使用してください。

#IMPLIED

server

CDATA

SMTPサーバのDNS名またはIPアドレスです。

#REQUIRED

type

text | html 電子メールメッセージにプレーンテキストとHTMLデータのどちらが含まれているかを指定します。

text

内容の規則

親要素

要素

説明

actions

rule

arg-actions