Skip to content

Can't use multiple emails when using netteMailer option set to TRUE #308

@Gappa

Description

@Gappa

Version: 2.5.0

Bug Description

When using the new default option of netteMailer: true, multiple emails can't be set in config.neon:

This ends up throwing an error by itself:

Nette\Utils\AssertionException The header 'To' expects to be email, string given.

When trying to add the multiple emails:

.../tracy/tracy/src/Bridges/Nette/MailSender.php:47	source  Nette\Mail\Message->addTo
$email	"[email protected], [email protected]"

Steps To Reproduce

Set Tracy email config as above and trigger an error in the application that will send an email.

Expected Behavior

Email message containing the errror is successfully created.

Note

Maybe I'm not setting the emails correctly? I tried also this, but that also didn't work:

Or did it previously (i.e. with netteMailer: false) work just "by accident"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions