Sends an email via the connected email account that owns the from address. Currently supports new sends only; replies and forwards are not yet supported.
Supports idempotency via the Idempotency-Key header.
Required scope: emails:create
Rate limit category: Write
Parameters
from_: str
Bare email address (no display name). Must match a connected email account owned by the API key user. Compared case-insensitively. Used as the From header when sending.
Send an email
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
email_send_response = client.email.send(
from_="sales@acme.com",
message_body={
"content": "<p>Hi there,</p><p>Following up on our chat earlier this week.</p>"
},
subject="Following up on our chat",
to=["lead@example.com"],
)
print(email_send_response.sent_at){
"sentAt": "sentAt"
}Returns Examples
{
"sentAt": "sentAt"
}