php - syntax Error in Mail::send Laravel -
I'm not sure why I'm getting this simple error is the error telling me that syntax error, unexpected ';' With my code below I did not find any errors: But when I add an array, I get the error: ; should not be.
mail :: send ('emails.invite.invite', $ user, function ( $ Message) ($ email) {$ message- & gt; Topic ('Message subject'); $ message- & gt; ('noreply@example.net', 'Sender name'); $ message- & gt; ; From ($ email); // recipient address});
mail :: send ('emails.invite.invite', array ( 'Link' = & gt; URL: route ('account active', $ code), $ user, function ($ message) usage ($ email) {$ message- & gt; topic ('message subject'); $ From message- & gt; ('norele @ example.net', 'sender name'); $ message-> ($ email); // recipient address});
if ($ user) {mail :: send ('emails.invite.invite', array ('link' = & Gt; URL :: Way ('account-active', $ code), 'Name' = & gt; $ name), function ($ message) usage ($ email) {$ message- & gt; topic ('message subject'); $ message- & gt; ('noreplay / example.net' , 'Sender Name'); $ Message- & gt; From ($ email); // Recipient Address});
Comments
Post a Comment