Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save smilekomiya/c0049a3a07a873f74a4a115f8c5051f4 to your computer and use it in GitHub Desktop.
Save smilekomiya/c0049a3a07a873f74a4a115f8c5051f4 to your computer and use it in GitHub Desktop.
laravel5.2 pushing to specific queue server
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