Guides
Password resets and verification
Send password-reset and verification links created by your application.
Prepare the template
Publish password-reset and email-verification templates with {{ name }} in the text and {{ action_url }} as the button URL. Your authentication system creates and validates the link, including its token and expiration.
Laravel
Add this call to AppServiceProvider::boot() after configuring sendery/laravel. It handles Laravel’s standard password-reset and verification notifications.
// app/Providers/AppServiceProvider.php
use Sendery\Laravel\Sendery;
public function boot(): void
{
Sendery::useBuiltInNotifications();
}Django
Configure PasswordResetView with SenderyPasswordResetForm. Keep Django’s confirmation and completion routes and HTML pages. The Django integration guide includes a complete URL configuration.
Send from another framework
Replace action_url with the absolute reset URL generated by your authentication system and send this JSON to POST /api/v1/emails. Use a new idempotency key for a new token or an intentional resend.
{
"to": "[email protected]",
"template": "password-reset",
"data": {
"name": "Alex",
"action_url": "https://example.com/reset-password?token=YOUR_RESET_TOKEN"
}
}