send_email
Send emails via the Resend API with support for plain text, attachments, and optional scheduling. Specify custom sender and reply-to addresses to personalize your messages.
Instructions
Sends an email using the Resend API. Supports plain text content, attachments and optional scheduling. Can specify custom sender and reply-to addresses.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
attachments | No | Optional. List of attachments. Each attachment must have a filename and either localPath (path to a local file) or remoteUrl (URL to a file on the internet). | |
content | Yes | Plain text email content | |
from | No | Optional. If provided, uses this as the sender email address; otherwise uses SENDER_EMAIL_ADDRESS environment variable | |
replyTo | No | Optional. If provided, uses these as the reply-to email addresses; otherwise uses REPLY_TO_EMAIL_ADDRESSES environment variable | |
scheduledAt | No | Optional parameter to schedule the email. This uses natural language. Examples would be 'tomorrow at 10am' or 'in 2 hours' or 'next day at 9am PST' or 'Friday at 3pm ET'. | |
subject | Yes | Email subject line | |
to | Yes | Recipient email address |
Input Schema (JSON Schema)
{
"properties": {
"attachments": {
"description": "Optional. List of attachments. Each attachment must have a filename and either localPath (path to a local file) or remoteUrl (URL to a file on the internet).",
"items": {
"oneOf": [
{
"required": [
"localPath"
]
},
{
"required": [
"remoteUrl"
]
}
],
"properties": {
"filename": {
"description": "Name of the attachment file",
"type": "string"
},
"localPath": {
"description": "Absolute path to a local file on user's computer. Required if remoteUrl is not provided.",
"type": "string"
},
"remoteUrl": {
"description": "URL to a file on the internet. Required if localPath is not provided.",
"type": "string"
}
},
"required": [
"filename"
],
"type": "object"
},
"type": "array"
},
"content": {
"description": "Plain text email content",
"type": "string"
},
"from": {
"description": "Optional. If provided, uses this as the sender email address; otherwise uses SENDER_EMAIL_ADDRESS environment variable",
"format": "email",
"type": "string"
},
"replyTo": {
"description": "Optional. If provided, uses these as the reply-to email addresses; otherwise uses REPLY_TO_EMAIL_ADDRESSES environment variable",
"items": {
"format": "email",
"type": "string"
},
"type": "array"
},
"scheduledAt": {
"description": "Optional parameter to schedule the email. This uses natural language. Examples would be 'tomorrow at 10am' or 'in 2 hours' or 'next day at 9am PST' or 'Friday at 3pm ET'.",
"type": "string"
},
"subject": {
"description": "Email subject line",
"type": "string"
},
"to": {
"description": "Recipient email address",
"format": "email",
"type": "string"
}
},
"required": [
"to",
"subject",
"content"
],
"type": "object"
}