Use case
Password reset email
When a user requests a password reset from a logged-out flow. Copy the HTML into your app and send with one API call.
Subject line ideas
- Reset your password
- Password reset request
- Reset link for your account
HTML example
Replace placeholders in your app before send. This is not a Notify template product — it is a starting snippet.
<p>Hi,</p>
<p>Reset your password using this link (expires soon):</p>
<p><a href="{{RESET_URL}}">Reset password</a></p>
<p>If you did not request this, ignore this email.</p>Send with Notify
const res = await fetch('https://notify.cx/api/email/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': process.env.NOTIFY_API_KEY
},
body: JSON.stringify({
to: 'user@example.com',
from: 'noreply@yourdomain.com',
subject: "Reset your password",
message: `${html}`
})
});Security notes
- Store only a hashed token server-side
- Short expiry (e.g. 15–60 minutes)
- Single use; invalidate after success
- Same response whether the email exists or not (avoid enumeration)
Related
Frequently asked questions
When should I send a password reset email?
When a user requests a password reset from a logged-out flow.
Do I need Notify templates?
No. Paste HTML (or plain text) into the message field. Notify delivers — your app owns the content.
How do I send this with Notify?
POST https://notify.cx/api/email/send with x-api-key and fields to, from, subject, message. Free 1,000/mo; Pro $10 for 10,000.