Update ImapMailbox.php

Updated the for each in the to's (line 241) as BCC'd addresses cause a 'not set' error due to the host and to property not being set.