Monday, 15 June 2015

php - Add headers in mail function laravel 5 -


I am updating code from laravel 4 to laravel 5

Apply matching functionality to LARWAL 4 Here are some code like

  mail :: send ('emailtemplate.sample', $ content_data, function ($ message) usage ($ to_mail, $ email_data, $ from_name) {$ message - & gt; $ ($ Email_data- & gt; subject); $ header = $ message-> getHeaders (); $ header- & gt; adext header ('X-MC-Prescri Reciprints', 'Fault') ;});  

I have $ headers = $ message-> GetHeaders (); and $ headers-> AddTextHeader ('

Calling on / code> method to Swift_Message is not a part of Laravel, it is a third-party component, yet Laravel 5 has changed, Swift does not work as before


No comments:

Post a Comment