電子メール通知にデフォルトの UTF-8 設定以外の文字セットを指定するサポートによって、SetMailNotificationSettings メソッドは、文字セットを指定するために言語設定のオプションの引数を受け入れます。追加エレメントが指定されていて、"" が指定されていない場合は、この追加エレメントは、すべての発信電子メール通知に適用されるエンコードとして使用されます。
Windows® の場合、このメソッドのメール設定引数は、次のいずれかの値となります。
ここで、1 は SMTP および MAPI プロトコルの場合に、「send active」が True であることを示します (POP3 の場合は不要)。
構成設定文字列の文字列値は、電子メール送信方法 (SMTP、MAPI、POP3) に基づきます。
Perl
$MailMsg->SetMailNotificationSettings(config_info);
Perl
use CQPerlExt;
my $cqmail = CQMailMsg::Build();
my @SMTPemailsettings = ('SMTP', 'mail.test.ibm.com', 'admin@us.ibm.com', 'John Smith', '1');
my $setmail_success = $cqmail->SetMailNotificationSettings(¥@SMTPemailsettings);
if ($setmail_success) {
print "Email notification successfully set¥n";
}
else {
print "Email notification NOT successfully set¥n";
}
CQMailMsg::Unbuild($cqmail);