Manual API key setup
Register at TigerMail and create an API key
Paste our instructions and describe your project
ChatGPT will generate email integration code
Add the code and API key to your project
This is an example of what ChatGPT will generate for you.
// ChatGPT generates code for your framework:
// Next.js API Route example:
import { NextResponse } from "next/server";
export async function POST(request: Request) {
const { to, subject, html } = await request.json();
const response = await fetch("https://tigermail.io/api/v1/send", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TIGERMAIL_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
to: [to],
subject,
html,
from: process.env.FROM_EMAIL,
}),
});
const data = await response.json();
return NextResponse.json(data);
}