-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] Fix SparkPost doesn't send attachments #13577
Conversation
@treserres Can you post your code? Mail::send('mail', [], function($mail) {
$mail->to('email@address.ext')->subject('Sparkpost test');
}); |
Sure, here is: Route::get('/tm', function () {
$message = 'Muy buenos días';
$data = [
'from_name' => 'rrr',
'to_name' => 'rrr',
'body' => $message,
];
Mail::send([
"emails.you-have-new-notification",
"emails.you-have-new-notification-plain",
],
$data,
function ($message) {
$message
->to('rrr@example.com', 'Ricardo')
->subject('Ricardo le ha enviado mensaje');
}
);
}); |
I have the same issue reported by @treserres |
Call to undefined method Swift_MimePart::getFileName() @treserres This error because the message plain version is in getChildren() array. Soon a fix. |
I have the same issue reported by @treserres. |
Does anyone have a fix? On Sat, May 28, 2016 at 6:00 AM -0700, "kezkankrayon" notifications@github.com wrote: I have the same issue reported by @treserres. — |
@taylorotwell Yes but I'm testing the fix in different cases: billmn@fea984d |
Fix issue #13546.
Here SparkPost's docs on attachments:
https://github.com/SparkPost/sparkpost-api-documentation/blob/master/services/transmissions_api.md#attachment-attributes