I'd like to dynamically set unsubscribe links using Sendgrid in my PHP/Laravel similar to how its been demonstrated with Ruby on Rails.
I see that I need to set a header with JSON. Can someone help figure out how this header gets integrated with a simple signup confirm code? See below:
Mail::send('emails.confirmation', ['user' => $user, 'resend_text' => $resend_text], function ($m) use ($user, $resend_text) {
$m->to($user->email)->subject('Confirm your email address'.$resend_text);
});