php - Sent mail to multiple address using Laravel 4 queue -


I'm using 4 times, typing to send mail to multiple users using QEE Mail, My code looks like this - $ mailuserlist = DB :: table ('table') - & gt; Join ('some_table') - & gt; Select ('Something') - & gt; Where ('some condition')) - & gt; get(); Mail :: qi ('mail_tipplet', $ data, function ($ message) usage ($ mailslists) {$ message- & gt; from ('test@desto.co.in ',' Mail Notification '); Forex Currency $ Mailslists) $ {as value} {$ message-> ($ value ['email'], $ value ['firstname']. $. ['Lastname']);} $ message- & gt; Subject ('test mail');});

.. This is not working at all. How can I send AIL to many addresses?

This is possible in two ways, as we can see in the source code: < Sir

  • Using the array

    Channing:

      - & gt; From ($ Address1, $ name1) - & gt; From ($ address2, $ name2) - & gt; From ($ address3, $ name3) ...   

    Using the address array:

      - & gt; To (array ($ address1, $ address2, $ address3, ...), array ($ name1, $ name2, $ name3, ...))    

  • Comments

    Popular posts from this blog

    c - Mpirun hangs when mpi send and recieve is put in a loop -

    python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

    java - Unable to get JDBC connection in Spring application to MySQL -