Archived Forum Post

Index of archived forum posts

Question:

SMTP: Too many messages for this session

Nov 17 '15 at 12:25

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?


Answer

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.