このプロシージャでは、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

hostname

New SMTP server hostname

port

New SMTP server port

ssl

New SSL setting

starttls

New TLS setting

username

New SMTP server username

password

New SMTP server unencrypted password. To set an encrypted password, importSmtpConfiguration may be used

fromAddr

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'
) ;;

SYSADMIN.setSmtpConfiguration available since v4.2