Send mail with Iron IO Laravel 4

Asked
Active3 hr before
Viewed126 times

5 Answers

90%

Meta Stack Overflow , Stack Overflow help chat , Stack Overflow Public questions & answers ,When i submit the form, the queue is received in Iron mq dashboard and apparently fired. But no mail is received..

I've used SQS before but not Iron, maybe you should use this?

Route::post('booking', array('before' => 'csrf', 'uses' => 'HomeController@booking'));
88%

I'm trying to use the Mail::queue in Laravel 4 without success.,It is created on my dashboard a subscriber, and also when I access my route queue/send a new queue is sent to Iron.io.,The problem is that I never received the email should be sent when the Mail::queue to be executed.,I might be off, but Mail::send() is the correct function to use, since you are using Iron.io to handle the queue.

When I run the command:

php artisan queue: subscribe queue_name http: //foo.com/queue/push

Look my routes:

< ? php
Route::post('queue/push', function() {
   return Queue::marshal();
});

Route::get('queue/send', function() {
   Mail::queue('emails.teste', array(), function($message) {
      $message - > to('me@mesite.com', 'Renato') - > subject('Welcome!');
   });

   return 'Ok';
});
load more v
72%

I'm trying to use the Mail::queue in Laravel 4 without success.,It is created on my dashboard a subscriber, and also when I access my route queue/send a new queue is sent to Iron.io.,Using Mail::queue with iron.io ,The problem is that I never received the email should be sent when the Mail::queue to be executed.

When I run the command:

php artisan queue: subscribe queue_name http: //foo.com/queue/push

Look my routes:

< ? php
Route::post('queue/push', function() {
   return Queue::marshal();
});

Route::get('queue/send', function() {
   Mail::queue('emails.teste', array(), function($message) {
      $message - > to('[email protected]', 'Renato') - > subject('Welcome!');
   });

   return 'Ok';
});
load more v
65%

You may also specify the queue / tube a job should be sent to:,You may also specify which queue connection the listener should utilize:,You may also set the length of time (in seconds) each job should be allowed to run:,You may also specify the number of seconds to wait before the job is released:

To push a new job onto the queue, use the Queue::push method:

Queue::push('SendEmail', array('message' => $message));
load more v
75%

IronMQ is an elastic message queue for managing data and event flow within cloud applications and between systems.,This library uses IronMQ API v3.,If you're using laravel and see "Class IronMQ not found" error set iron_mq version to 1.* and install/update dependencies,message_expiration: Integer. Number of seconds between message post to queue and before message will be expired.

{
   "require": {
      "iron-io/iron_mq": "2.*"
   }
}
load more v

Other "undefined-undefined" queries related to "Send mail with Iron IO Laravel 4"