eusend
SMTP

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

.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:clear

Connection reference

VariableValue
MAIL_HOSTsmtp.eusend.dev
MAIL_PORT465 (or 2465)
MAIL_ENCRYPTIONssl
MAIL_USERNAMEeusend
MAIL_PASSWORDyour eusend API key (eu_live_…)
MAIL_FROM_ADDRESSan 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.