Skip to main content

email

Creates, updates, deletes, gets or lists an email resource.

Overview

Nameemail
TypeResource
Idcloudflare.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:

NameAccessible byRequired ParamsOptional ParamsDescription
sendexecaccount_id, from, to, subject
send_rawexecaccount_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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

Lifecycle Methods

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 }}"
}'
;