Hi there!

We are using a null driver to sent out e-mails in case a condition is being met. If we use more than one e-mailaddress for the TO field, the e-mail is being composed with multiple TO headers. This e-mail is being rejected by e-mail servers because this is not according to the RFC standard. Example of an message being sent by IDM:

From: idm@test.com
To: test1@test.com
To: testemail@gmail.com
To: test.test@test2.com
Message-ID: <218805883.3645.1501588382723.JavaMail.root@server name>
Subject: Password changed
MIME-Version: 1.0

Example of rejected message

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

The mail system

<test@test.com>: host mailfilter1.mijndomein.nl[] said: 550
Messages should have one or no To headers, not 2. (in reply to end of DATA

How can this issue be resolved?