Added support for to and from name
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
import "./.next/types/routes.d.ts";
|
||||
import "./.next/dev/types/routes.d.ts";
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
|
||||
+108
-7
@@ -192,17 +192,54 @@
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "email"
|
||||
"format": "email",
|
||||
"description": "Simple email address"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["email"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Recipient display name"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "Recipient email address"
|
||||
}
|
||||
},
|
||||
"description": "Recipient with name and email"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "email"
|
||||
}
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "email"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["email"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Recipient display name"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "Recipient email address"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "Array of recipients (strings or objects)"
|
||||
}
|
||||
],
|
||||
"description": "Recipient email(s)"
|
||||
"description": "Recipient email(s). Can be a string, an object with {name, email}, or an array of either."
|
||||
},
|
||||
"subject": {
|
||||
"type": "string",
|
||||
@@ -217,9 +254,34 @@
|
||||
"description": "Template identifier to use"
|
||||
},
|
||||
"from": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "Simple email address"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["email"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Sender display name"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "Sender email address"
|
||||
}
|
||||
},
|
||||
"description": "Sender with name and email"
|
||||
}
|
||||
],
|
||||
"description": "Custom from address (requires verified domain). Can be a string or an object with {name, email}."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "Custom from address (requires verified domain)"
|
||||
"description": "Sender display name (alternative to using from.name)"
|
||||
},
|
||||
"subscribed": {
|
||||
"type": "boolean",
|
||||
@@ -282,6 +344,45 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"withNames": {
|
||||
"summary": "Email with recipient and sender names",
|
||||
"value": {
|
||||
"to": {
|
||||
"name": "Jane Doe",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
"from": {
|
||||
"name": "My Company",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
"subject": "Welcome to Our Service",
|
||||
"body": "<h1>Welcome {{name}}!</h1><p>We're glad to have you.</p>",
|
||||
"data": {
|
||||
"name": "Jane"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multipleRecipients": {
|
||||
"summary": "Multiple recipients with names",
|
||||
"value": {
|
||||
"to": [
|
||||
{
|
||||
"name": "Jane Doe",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
{
|
||||
"name": "John Smith",
|
||||
"email": "[email protected]"
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"name": "Newsletter",
|
||||
"email": "[email protected]"
|
||||
},
|
||||
"subject": "Monthly Update",
|
||||
"body": "<h1>Hello {{name}}!</h1>"
|
||||
}
|
||||
},
|
||||
"withTemplate": {
|
||||
"summary": "Using template",
|
||||
"value": {
|
||||
|
||||
Reference in New Issue
Block a user