And setting the appropriate values for these 4:
MAIL_USERNAME=YOUR_DOMAIN_NAME.com MAIL_PASSWORD="Your_Smart_Host_Password (quoted)" MAIL_FROM_ADDRESSemail@example.com MAIL_FROM_NAME=default_from_name
If you don't have "outbound smart host relay" enabled in your SpamHero outbound settings, and just have outbound enabled for individual quarantine users and account contacts, you can alternatively set the credentials above from one of these users instead.
And that's it! You can then send emails as outlined in Laravel's official documentation:
If you have made any changes to
Mail::to(["firstname.lastname@example.org"])->locale("en")->send(new Notification("some Parameters"));
config/mail.php, you'll want to revert them for this to work. You can grab a copy from Laravel's official github.