select項目がメールアドレスの場合、そのメールアドレス宛てにメール
偶然、DrupalのWebformでエラーが出る?を見て、見逃していた設定を発見しました。
selectの設定で「送信内容のコピーをメールで送る 」にチェックを入れると必ずエラーがでます。チェックしなければ、大丈夫です。
というものですが、見てみると、
□E-mail a submission copy
Check this option if this component contains an e-mail address that should get a copy of the submission. Emails are sent individually so other emails will not be shown to the recipient. To use the option with a select component, you must use key-value pairs seperated by pipes. i.e. user@example.com|Sample user.
Check this option if this component contains an e-mail address that should get a copy of the submission. Emails are sent individually so other emails will not be shown to the recipient. To use the option with a select component, you must use key-value pairs seperated by pipes. i.e. user@example.com|Sample user.
となってました(こちらのWebformsは和訳されてません)
おっ!select項目がメールアドレスの場合、そのメールアドレス宛てにメールのコピーを送信できるようです。
他のフィールドを見てみると、当然ながら「email」フィールドにも同様の設定がありました。
いままで、カスタムモジュールで自動応答していたのですが、文面は貧弱ながら自動応答メールも仕組めそうです。
(完全な自動応答としてはToken等を利用した文面でないと体裁が悪いため - もともとWebformのメール本文はそのままでは、、、日本的ではないですから)
selectの場合は、チェックボックスやラジオボタンが利用できるので、簡単に実装で応用範囲が広そうです。