Created
January 18, 2018 12:45
-
-
Save smilekomiya/c0049a3a07a873f74a4a115f8c5051f4 to your computer and use it in GitHub Desktop.
laravel5.2 pushing to specific queue server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mail::setQueue(Queue::connection('sqs_send_mail')) | |
->queueOn( | |
'queue-name', | |
$mail_template, | |
$mail_data, | |
function($message) use ($to, $subject, $from, $from_name) { | |
$message->to($to, $to) | |
->subject($subject) | |
->from($from, $from_name); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment