Sends an email to one or more email addresses.
CALL DBCloud.SendDistributionEmail ( to_address=to_address, subject=subject, body=body [, optional-parameters ] )
dbcloudcmd run SendDistributionEmail to_address subject body [ optional-parameters ]
The recipient email addresses, separated by semicolons. (Required)
The subject of the email. (Required)
The body of the email. (Required)
The file name and path of a file to attach from the host file system. The default is NULL.
The MIME Content-Type of the email body. The default is 'text/plain'.
The timeout in seconds. The default is 60.
The character set of the supplied subject and body. The default is db_property('charset').
The host where the email will be sent from. Accepts a search query that identifies one host, for example a host name or ID. The default is DBCloud.F_CurrentHost().
This task sends an email to one or more email addresses.
Your cloud must have email enabled and configured for this task to succeed. You can enable or change the email server by using the AlterCloud task.
To send emails to cloud users by specifying the cloud user name, use the SendUserEmail task.
The following task sends an email to a single email address:
dbcloudcmd run SendDistributionEmail firstname.lastname@example.org subject="Test subject" body="This is the body of the email"
The following task sends an email with an HTML body and an attachment to multiple email addresses:
dbcloudcmd run SendDistributionEmail to_address="email@example.com;firstname.lastname@example.org" subject="More complex example" body=" <h1>The heading of the email body</h1> <p>A paragraph within the email body.</p>" attachment_file="c:\myfile.txt" content_type="text/html"