gleam/sendgrid
Types
pub type Email {
Email(
to: List(String),
sender_name: String,
sender_email: String,
subject: String,
content: EmailContent,
)
}
Constructors
-
Email( to: List(String), sender_name: String, sender_email: String, subject: String, content: EmailContent, )
pub type EmailContent {
TextContent(text: String)
RichContent(html: String, text: String)
}
Constructors
-
TextContent(text: String)
-
RichContent(html: String, text: String)
Functions
pub fn dispatch_request(
email: Email,
api_key: String,
) -> Request(String)