Before the migration, send_mail() used to be called with an untainted context but after the API migration it inherited the altered context with active_test=False which caused subsequent calls to ir.mail_server#connect() to fetch inactive records.
Before the migration, send_mail() used to be called with an untainted context but after the API migration it inherited the altered context with active_test=False which caused subsequent calls to ir.mail_server#connect() to fetch inactive records.