このプロシージャでは、sendMailプロシージャで必要なSMTP Configuration を設定します。
パラメータを省略したり、パラメータにNULL値/空文字列を指定しても、SMTP Configurationの値は変更されないことに注意してください。すべてのパラメータは省略するか、NULL に設定することができます。
Usage
SYSADMIN Procedure
CALL "SYSADMIN.setSmtpConfiguration"( "hostname" => 'string_hostname', "port" => integer_port, "ssl" => boolean_ssl, "starttls" => boolean_tls, "username" => 'string_username', "password" => 'string_password', "fromAddr" => 'string_fromAddr') ;;UTILS Procedure
CALL "UTILS.setSmtpConfiguration"( "hostname" => 'string_hostname', "port" => integer_port, "ssl" => boolean_ssl, "starttls" => boolean_tls, "username" => 'string_username', "password" => 'string_password', "fromAddr" => 'string_fromAddr') ;;Parameters
Parameter | Description |
|---|---|
| New SMTP server hostname |
| New SMTP server port |
| New SSL setting |
| New TLS setting |
| New SMTP server username |
| New SMTP server unencrypted password. To set an encrypted password, |
| New email address to be used as a "from" address; mandatory |
Examples
SYSADMIN Procedure
CALL "SYSADMIN.setSmtpConfiguration"( "hostname" => 'example_host', "port" => 12345, "ssl" => true, "starttls" => false, "username" => 'smtp-user', "password" => 'secret') ;;UTILS Procedure
CALL "UTILS.setSmtpConfiguration"( "hostname" => 'example_host', "port" => 12345, "ssl" => true, "starttls" => false, "username" => 'smtp-user', "password" => 'secret') ;;