Closed rommeA closed 2 years ago
Yeah, clearly the problem is in calling the setBody
method - I commented it and got correct email.
upd: works fine with this:
$message->setBody(
new TextPart(
$this->addTrackers($original_html, $hash),
$message->getHtmlCharset(),
'html'
));
original subtype was "alternative", but for proper work it needs to be changed to "html"...
Ok, seems that the issue is the structure of the messages is a bit more complicated than it was with SwiftMailer. I've made some more adjustments in 6.0.2 and extended the test case coverage. Please continue to report any issues in 6.0.x that come up as they are found.
Thanks for the quik fix for v.6.0. I've upgraded to v.6.0.1 and i'm getting this bug when sending an email.
This file actually contains original HTML of the message.
My code:
Mail::to($email)->send(new NewLogin());
in NewLogin.php:I think there's smth wrong with
setBody
method here (MailTracker.php):