Laravel SMTP
Set up Laravel's mail configuration to send through eusend over SMTP — Mailables, notifications, and queued mail, DKIM-signed and tracked.
Laravel ships with an SMTP mail transport, so sending through eusend is a matter
of environment variables — no package to install. Every Mail::send, Mailable,
and notification then routes through eusend, DKIM-signed and tracked.
.env
MAIL_MAILER=smtp
MAIL_HOST=smtp.eusend.dev
MAIL_PORT=465
MAIL_ENCRYPTION=ssl # implicit TLS on 465
MAIL_USERNAME=eusend # always the literal string "eusend"
MAIL_PASSWORD=eu_live_xxxxxxxxxxxx
MAIL_FROM_ADDRESS[email protected] # must be a verified domain
MAIL_FROM_NAME="Acme"config/mail.php already reads these variables — no edit needed there.
Use MAIL_ENCRYPTION=ssl with port 465 (implicit TLS). Do not use tls on
465; STARTTLS (587) is not supported.
Send an email
use Illuminate\Support\Facades\Mail;
Mail::raw('Order #1234 is on its way.', function ($message) {
$message->to('[email protected]')
->subject('Your order has shipped');
});After editing .env, clear the cached config so the new values take effect:
php artisan config:clearConnection reference
| Variable | Value |
|---|---|
MAIL_HOST | smtp.eusend.dev |
MAIL_PORT | 465 (or 2465) |
MAIL_ENCRYPTION | ssl |
MAIL_USERNAME | eusend |
MAIL_PASSWORD | your eusend API key (eu_live_…) |
MAIL_FROM_ADDRESS | an address on a verified domain |
Use an eu_test_ key while building — sends are tracked but not delivered. See
the SMTP overview for limits and status codes.
Django SMTP
Configure Django's email backend to send through eusend over SMTP — password resets, notifications, and any send_mail call, DKIM-signed and tracked.
Rails SMTP
Configure Action Mailer to deliver through eusend over SMTP — mailers, Devise emails, and any deliver_now/deliver_later, DKIM-signed and tracked.