beyondcode / beyondcode/laravel-mailbox
Incoming "to" not working
- Dominant language
- PHP
- Stars
- 1.1k
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to get this setup using an incoming "to" as such:
```php
Mailbox::to('{uuid}@mydomain.com', DefaultMailbox::class);
```
The mailbox was never matching, so I created a catch all to test it out:
```php
Mailbox::catchAll(CatchAllMailbox::class);
```
The catch all seems to be working but the email does not seem to be parsed correctly.
Contents of CatchAllMailbox.php
```php
id());
logger($email->to());
logger($email->from());
logger($email->subject());
logger('=====================================');
}
}
```
Log Result
```log
[2019-02-19 11:34:57] local.DEBUG: 20190219113456.1.C52A0016EF9E568D@mydomain.com
[2019-02-19 11:34:57] local.DEBUG: array (
)
[2019-02-19 11:34:57] local.DEBUG: postmaster@mydomain.com
[2019-02-19 11:34:57] local.DEBUG: =====================================
[2019-02-19 11:38:10] local.DEBUG: 20190219112808.1.FA0D36529944A4DC@mydomain.com
[2019-02-19 11:38:10] local.DEBUG: array (
)
[2019-02-19 11:38:10] local.DEBUG: postmaster@mydomain.com
[2019-02-19 11:38:10] local.DEBUG: =====================================
```
The `to` list seems to be empty, however if i take the stored message from the database and decode the base64 I can see the `recipient` field is set to `c8896a6b-be27-49d3-afed-950a11540189@mydomain.com`
Contributor guide
Assessment
This issue has not been assessed yet.