Email - sendMailWithAttachment
Email - sendMailWithAttachment
Description :
This command sends an email with a single file attachment. You must provide the sender and recipient of the email and its subject, body, attachment directory path and the attachment file name.
Return type : void
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
from | String | Sender of the email. |
to | String | Recipient of the email. If there are multiple recipients, the "to" list should be comma separated. |
subject | String | Subject of the email. |
body | String | Body of the email. |
attchdir | String | Directory of the attachment file. The path must be local to the system where the blcli was started. |
attchname | String | Name of the attachment file. |
Example
The following example shows how to send an email:
Script
# Enter the following:
blcli Email sendMailWithAttachment joe@example.com dan@example.com "Hello" "Here is the file" "/tmp" "myfile.txt"
blcli Email sendMailWithAttachment joe@example.com dan@example.com "Hello" "Here is the file" "/tmp" "myfile.txt"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*