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

Multiple e-mails in to field #106

Open
ajanini opened this issue Oct 18, 2019 · 3 comments
Open

Multiple e-mails in to field #106

ajanini opened this issue Oct 18, 2019 · 3 comments

Comments

@ajanini
Copy link

ajanini commented Oct 18, 2019

Hello,

How can I set multiple addresses in the to field?

I've tried:

$config = [
    'personalizations' => [
        [
            'to' => [
                [
                    'email' => '[email protected]',
                    'name'  => 'user1',
                ],
                [
                    'email' => '[email protected]',
                    'name'  => 'user2',
                ],
            ],
            'substitutions' => [
                '%company%' => 'Acme',
            ],
        ],
    ],
];

and

$config = [
    'personalizations' => [
        [
            'to' => [
                '[email protected]',
                '[email protected]',
            ],
            'substitutions' => [
                '%company%' => 'Acme',
            ],
        ],
    ],
];

Is this not possible?

@ajanini
Copy link
Author

ajanini commented Oct 18, 2019

I think the same goes for cc and bcc fields.

@s-ichikawa
Copy link
Owner

Thanks, this is good issue.
Now, it seems impossible to send in this way.
I want to fix it but I'm on a vacation now. If you are harried, Please create the PR.

@ajanini
Copy link
Author

ajanini commented Oct 22, 2019

Thanks @s-ichikawa. I have no experience creating a PR. I'm gonna study it, but hope you can fix it sooner than I can.

amcsi added a commit to amcsi/laravel-sendgrid-example that referenced this issue Mar 30, 2020
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

No branches or pull requests

2 participants