Laravel
Laravel's built-in SMTP mailer works with Signally. Change your .env and your existing Mailables and notifications send through us.
SMTP settings
| Host | smtp.signally.cloud |
|---|---|
| Port | 465 with SSL/TLS (recommended), or 587 with STARTTLS |
| Username | Your SMTP username, e.g. smtp-12-ab3xk9 |
| Password | The SMTP password shown once when you created the login |
Create an SMTP login under API & SMTP in your dashboard. It is separate from your API keys. The From address must be on a domain you have verified.
MAIL_MAILER=smtp
MAIL_HOST=smtp.signally.cloud
MAIL_PORT=465
MAIL_USERNAME=smtp-12-ab3xk9
MAIL_PASSWORD=your-smtp-password
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
# Laravel 11 and later
MAIL_SCHEME=smtps
# Laravel 10 and earlier
MAIL_ENCRYPTION=sslUsing port 587 instead? Set MAIL_PORT=587, and either leave MAIL_SCHEME unset (Laravel 11+) or set MAIL_ENCRYPTION=tls (Laravel 10 and earlier).
After changing .env, clear the cached config and send a test:
php artisan config:clear
php artisan tinker
>>> Mail::raw('Hello from Signally', fn ($m) => $m->to('[email protected]')->subject('Test'));MAIL_FROM_ADDRESS must be on a domain you have verified in Signally, or the message is rejected with sender_not_verified.
Queue your mail
Send with Mail::to($user)->queue(new OrderShipped($order)) so a slow network never holds up a web request. Queued jobs retry on failure.
Or use the REST API
use Illuminate\Support\Facades\Http;
$response = Http::withToken(config('services.signally.key'))
->withHeaders(['Idempotency-Key' => "order-shipped-{$order->id}"])
->retry(3, 500, throw: false)
->post('https://api.signally.cloud/v1/email', [
'from' => ['address' => '[email protected]', 'name' => 'Your Shop'],
'to' => [$order->email],
'subject' => "Order #{$order->id} has shipped",
'html' => view('emails.shipped', ['order' => $order])->render(),
]);
$response->throw(); // 202: ['message_id' => ..., 'accepted' => 1]'signally' => [
'key' => env('SIGNALLY_API_KEY'),
],Because each retry sends the same Idempotency-Key, a retried request never sends the email twice. See safe retries.
Keep keys and passwords in environment variables or your secrets manager, never in your code or Git repository. If one leaks, revoke it under API & SMTP and create a new one.
Stuck? Email [email protected] with your account name and the message ID or error code.