SendGrid Mail
SendGrid v3 mail send request with personalizations, content, and recipients.
sendgrid
Install
$ npx shadcn@latest add @open-types/sendgrid-mail
Source
export interface SendGridEmailAddress {
email: string;
name?: string;
}
export interface SendGridPersonalization {
to: SendGridEmailAddress[];
cc?: SendGridEmailAddress[];
bcc?: SendGridEmailAddress[];
subject?: string;
}
export interface SendGridContent {
type: string;
value: string;
}
export interface SendGridMailRequest {
personalizations: SendGridPersonalization[];
from: SendGridEmailAddress;
reply_to?: SendGridEmailAddress;
subject: string;
content: SendGridContent[];
}
export interface SendGridEmailAddress {
email: string;
name?: string;
}
export interface SendGridPersonalization {
to: SendGridEmailAddress[];
cc?: SendGridEmailAddress[];
bcc?: SendGridEmailAddress[];
subject?: string;
}
export interface SendGridContent {
type: string;
value: string;
}
export interface SendGridMailRequest {
personalizations: SendGridPersonalization[];
from: SendGridEmailAddress;
reply_to?: SendGridEmailAddress;
subject: string;
content: SendGridContent[];
}