Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

No From, To, Cc and other addresses in HTML file #101

Closed
ekateiva opened this issue Nov 23, 2023 · 2 comments · Fixed by #104
Closed

No From, To, Cc and other addresses in HTML file #101

ekateiva opened this issue Nov 23, 2023 · 2 comments · Fixed by #104

Comments

@ekateiva
Copy link
Contributor

I do not get addresses in a .html mail file. This is what I see as MessageInfo

<!--
From:[{}], 
to:[{}], 
reply-to:[{}], 
cc:[], 
bcc:[], 
subject:Test subject
-->

When I dump $message->getOriginalMessage()->getFrom(), I get:

array:1 [
  0 => Symfony\Component\Mime\Address^ {#3012
    -address: "no-reply@example.test"
    -name: "Example test (no-reply)"
  }
]

And when it is serialized using json_encode, it becomes: "[{}]"

Laravel version: Laravel Framework 10.18.0

@rudiedirkx
Copy link
Contributor

I missed those too. json_encode() only includes public properties, so not Address's. I can't image Symfony will implement JsonSerializable for this, so this package should do something. Can't be too hard. I'll make a PR soon, if I remember.

@rudiedirkx
Copy link
Contributor

I finally did something, yay.

@spatie spatie locked and limited conversation to collaborators Apr 8, 2024
@freekmurze freekmurze converted this issue into discussion #105 Apr 8, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
2 participants