Thanks to visit codestin.com
Credit goes to github.com

Skip to content

postal-mailer: changes in postal3 #60727

Open
@e9li

Description

@e9li

Symfony version(s) affected

7.2 and up

Description

I am not familiar with postal2 but in postal3 the dsn has no password, also in postal 3 the message_id is inside the data key.

How to reproduce

just installing and using with a postal3 server

Possible Solution

in PostalTransportFactory.php calling $apiToken = $this->getPassword($dsn); results in a password not set error. but postal3 has only an api key. changing to $apiToken = $this->getUser($dsn); solves the probelm.

in PostalApiTransport.php the line $sentMessage->setMessageId($result['message_id']) throws an error. changing to $sentMessage->setMessageId($result['data']['message_id'])

Additional Context

No response

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