feat: [#633] Allow setting custom headers when sending mail#964
feat: [#633] Allow setting custom headers when sending mail#964hwbrzzl merged 4 commits intogoravel:masterfrom vendion:master
Conversation
|
Could someone please check to see if I'm heading in the right direction before I finish up fixing the test files? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #964 +/- ##
==========================================
- Coverage 69.31% 69.21% -0.11%
==========================================
Files 160 160
Lines 10713 10736 +23
==========================================
+ Hits 7426 7431 +5
- Misses 2951 2969 +18
Partials 336 336 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks, checking. |
|
@vendion Thanks, great PR 👍 It's good to go. |
This adds the ability to add custom headers to mails. This is done by by adding new `Mail.Headers()` and `Mailable.Headers()` methods. Implements: goravel/goravel#633 Signed-off-by: Adam Jimerson <vendion@gmail.com>
hwbrzzl
left a comment
There was a problem hiding this comment.
Thanks, LGTM. Could you add a testing screenshot for this feature? To confirm if the code is expected.
|
Are you wanting a screenshot showing the custom headers in the email? If so, I can't get it to send an actual email via Because this is based off master, there are some breaking changes that make swapping my current project over to my fork a pain. |
|
@vendion You can run |
|
And please run |
Even running like that allows all tests to pass, but I'm not seeing an email. I'm using https://github.com/mailhog/MailHog as my SMTP for testing. Edit: I just compared my fork with this repo, and neither one actually sent out an email. |
Signed-off-by: Adam Jimerson <vendion@gmail.com>
|
Hey @vendion There is an issue with the mail test cases, I fixed it in the master branch, you can rebase your branch. Sorry for this. And I tested the header feature locally, it can be run normally, we are good to go.
|
|
Okay, just updated my branch with your changes. |
hwbrzzl
left a comment
There was a problem hiding this comment.
Great PR, thanks! I'll add you to the contributor list, looking forward to your next PR. 👍

This adds the ability to add custom headers to mails. This is done by adding new
Mail.Headers()andMailable.Headers()methods.📑 Description
Closes goravel/goravel#633
The summary will be generated by Copilot in the below.
✅ Checks