Ok, so I'm setting up a call to send an email using the mandrill-wrapper from packagist (rather than the build in mandrill-driver) since I want to use merge-vars.
So I set up my view and filled it. It renders correctly, all variables are set up and all is good (I test this by returning the view and see it's good).
next I set up $message, merge_vars- and to-array to send to my mandrill-object.
For $message["html"] I simply put
$message = array(
'html' => View::make(
'emails.wishlist.share',
array(
'name'=>Auth::user()->fName,
'list'=>$list));
...
);
if I just return the view, I can see it renders correctly, but when I actually make the api-call, I can see in the api-log, that the html-field is empty.
Is this because View::make() actually returns an object? And how to I get the raw html in that case?