Skip to content

SMTPClientSession: invalid SMTP command if empty recipients list in MailMessage #3219

@obiltschnig

Description

@obiltschnig

When attempting to send a MailMessage with an empty recipients list, an invalid SMTP command is sent to the server resulting in an SMTPException: SMTP Exception: Cannot send message data: 503 Bad sequence of commands.

Poco::Net::SMTPClientSession::sendMessage() should check for an empty recipients list and throw a more meaningful exception in such a case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions