Skip to content

Ability to start & stop SMTP connection when needed #43237

@phamviet

Description

@phamviet

Description
I am using Mailer in Messenger worker long lived process with AWS SES SMTP interface and it keep throwing error:

Expected response code "250" but got code "451", with message "451 4.4.2 Timeout waiting for data from client.

I know i can get rid of this error by setting ping_threshold: 0 but it is not efficient since the transport have to ping server on every email sending out. It is better to manually stop transport connection when Messenger message get handled (with all emails are sent out) and it will auto start on next message handling. But the problem is SmtpTransport start & stop methods are private and i have no way to access them.

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