Skip to content
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

Fix html body mail on SwiftMailCollector #619

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

parallels999
Copy link
Contributor

After #617, SwiftMailCollector stop showing messages body preview,
Now html array key is needed

$mail['html'] = $message->getHtmlBody();
$mail['body'] = $message->getTextBody();

@barryvdh barryvdh merged commit 1fdc3a3 into maximebf:master Mar 12, 2024
7 checks passed
@barryvdh
Copy link
Collaborator

Hmm maybe we should check if the key exists

@barryvdh
Copy link
Collaborator

Is the body actually html here? If so, the other body can be null or the text version

@barryvdh
Copy link
Collaborator

I think this was already fixed with #618 though, can you confirm?

@barryvdh
Copy link
Collaborator

If it's html, we need to add it to html, otherwise to the body; #620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants