Skip to content

SMTP is uppercase in Windows php.ini directive #40899

@widhold

Description

@widhold

Symfony version(s) affected: 5.2, symfony/mailer (v5.2.6)

Description
In
vendor\symfony\mailer\Transport\NativeTransportFactory.php line 42

$host = ini_get('smtp'); ... requests the php.ini SMTP environment variable, which is uppercase under windows:
SMTP string
https://www.php.net/manual/en/mail.configuration.php#ini.smtp
... and throws exception!

How to reproduce

Possible Solution
check for uppercase SMTP variable name

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions