Docs
Frameworks

Laravel

Use Laravel's mailer over SMTP.

Laravel works with Postwave through SMTP, with no package needed. Set these in .env:

MAIL_MAILER=smtp
MAIL_HOST=post-waves.com
MAIL_PORT=2587
MAIL_USERNAME=postwave
MAIL_PASSWORD=pw_xxxxxxxxx
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=hello@yourdomain.com
MAIL_FROM_NAME="Acme"

Then send as usual:

Mail::to($user)->send(new WelcomeMail($user));
Was this page helpful?Send feedback