Question:
Sending email fails with this error:
SmtpCmdResp: 421 #4.x.2 Too many messages for this session 421 #4.x.2 Too many messages for this session
How can this be fixed?
The SMTP server has been configured to limit the number of emails sent in a single SMTP logged-in session. To solve, call MailMan.CloseSmtpConnection after some number of emails. The next email sent (via SendEmail or another method) will automatically re-connect and establish a new session.