Creates, updates, deletes, gets or lists an email resource.
Overview
| Name | email |
| Type | Resource |
| Id | cloudflare.email_sending.email |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
send | exec | account_id, from, to, subject | ||
send_raw | exec | account_id, from, recipients, mime_message |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
Lifecycle Methods
- send
- send_raw
Email sending results.
EXEC cloudflare.email_sending.email.send
@account_id='{{ account_id }}' --required
@@json=
'{
"attachments": "{{ attachments }}",
"bcc": "{{ bcc }}",
"cc": "{{ cc }}",
"from": "{{ from }}",
"headers": "{{ headers }}",
"html": "{{ html }}",
"reply_to": "{{ reply_to }}",
"subject": "{{ subject }}",
"text": "{{ text }}",
"to": "{{ to }}"
}'
;
Email sending results.
EXEC cloudflare.email_sending.email.send_raw
@account_id='{{ account_id }}' --required
@@json=
'{
"from": "{{ from }}",
"mime_message": "{{ mime_message }}",
"recipients": "{{ recipients }}"
}'
;