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