SendMailMessage
Sends the message specified to the specified recipient.
Note:このプロシージャは、インデックス付きパラメータを使用します。 インデックス付きパラメータは、プロシージャの入力として単一のパラメータを複数のインスタンスに提供することを容易にします。
Param# という名前の入力パラメータがあるとします。このようなインデックス付きパラメータの複数のインスタンスを入力するには、次のように実行します。
EXEC ProcedureName Param#1 = "value1", Param#2 = "value2", Param#3 = "value3"
以下の表では、インデックス付きの入力パラメータは、名前の末尾に '#' 文字が付きます。
Input
| Name | Type | Required | Description |
| To | String | True | A semicolon-separated list of names and email addresses of the recipients. |
| Subject | String | True | The subject of the mail message. |
| From | String | False | The email address of the sender. |
| MessageBody | String | True | The message body. |
| CC | String | False | A semicolon-separated list of names and email addresses of the CCed recipients. |
| BCC | String | False | A semicolon-separated list of names and email addresses of the BCCed recipients. |
| Attachment# | String | False | A semicolon-separated list of the attachment file names (with the path if reading from a file) included in the message. |
| AttachmentData# | String | False | A semicolon-separated list of the base-64-encoded attachment data included in the message. To use this field, you must also specify the file name in Attachments. |
| IsHTML | String | False | Whether the email is HTML or plain text.
デフォルト値はTRUEです。 |
| Importance | String | False | The importance of the mail message.
使用できる値は次のとおりです。UNSPECIFIED, LOW, NORMAL, HIGH デフォルト値はUNSPECIFIEDです。 |
| Priority | String | False | The priority of the mail message.
使用できる値は次のとおりです。UNSPECIFIED, NONURGENT, URGENT, NORMAL デフォルト値はUNSPECIFIEDです。 |
| Sensitivity | String | False | The sensitivity of the mail message.
使用できる値は次のとおりです。UNSPECIFIED, PERSONAL, PRIVATE, COMPANYCONFIDENTIAL デフォルト値はUNSPECIFIEDです。 |
| DeliveryNotification | String | False | The email address to send a delivery notification to. |
| ReadReceipt | String | False | The email address to send a read receipt to. |
| Charset | String | False | The character set to use in the message.
デフォルト値はUTF-8です。 |
Result Set Columns
| Name | Type | Description |
| MessageId | String | The Id for the message as returned by the server. |