sendMail
プロシージャを使用すると、SMPT サーバー経由でE メールを送信できます。
これを使用するには、正しく Configuration された SMTP サーバーが必要です。SMTP サーバーは、setSmtpConfiguration
手順を使用して構成できます。
Usage
CALL
"UTILS.sendMail"
(
"Recipients"
=>
'string_Recipients'
,
"Subject"
=>
'string_Subject'
,
"Body"
=>
'string_Body'
,
"AttachmentName"
=> array(
'string_AttachmentName'
),
"Attachment"
=> array(blob_Attachment),
"AttachmentMimeType"
=> array(
'string_AttachmentMimeType'
)
)
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 |
Example
CALL
"UTILS.sendMail"
(
"Subject"
=>
'Testmail'
,
"Body"
=>
'Hello world.'
,
"Attachments"
=> array(
(
SELECT
file
FROM
(CALL
"file.getFiles"
() ) a
WHERE
a.filePath
like
'currencyconvertor.asmx'
),
(
SELECT
file
FROM
(CALL
"file.getFiles"
() ) a
WHERE
a.filePath
like
'currencyconvertor.wsdl'
)
),
"AttachmentNames"
=> array(
'currencyconvertor.asmx'
,
'currencyconvertor.wsdl'
),
"AttachmentMimeTypes"
=> array(
'application/asmx'
,
'application/wsdl'
)
) ;;