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

Method to get all html parts and complete html body #557

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

arwinvdv
Copy link
Contributor

When you create an email in Apple Mail and drag an PDF file in the middle of my email (so with text around) and send it, the getBodyHtml only returns the first part of the e-mail.

I added two methods $message->getBodyHtmlParts() and $message->getCompleteBodyHtml(). I don't know if there is a better implementation without DOMDocument.
I'd love to hear if improvements are possible. I think its better to rename the $message->getBodyHtml() to for example $message->getFirstBodyHtml() but I don't want to break to much.

Fixes for: #452 #454

@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Base: 94.76% // Head: 94.86% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (10dc04f) compared to base (a238641).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #557      +/-   ##
============================================
+ Coverage     94.76%   94.86%   +0.10%     
- Complexity      356      368      +12     
============================================
  Files            45       45              
  Lines           898      935      +37     
============================================
+ Hits            851      887      +36     
- Misses           47       48       +1     
Impacted Files Coverage Δ
src/Message/AbstractMessage.php 100.00% <100.00%> (ø)
src/Message/AbstractPart.php 95.51% <0.00%> (-0.41%) ⬇️
src/Message/EmbeddedMessage.php 100.00% <0.00%> (ø)
src/Message.php 85.84% <0.00%> (+0.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Slamdunk
Copy link
Collaborator

Don't care about the composer-unused issue: shivammathur/setup-php#703

@arwinvdv arwinvdv requested a review from Slamdunk February 16, 2023 12:48
@Slamdunk Slamdunk merged commit 392fa57 into ddeboer:master Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants