clean up variable usage after Mailer API change

$to can be an array now.

Change-Id: I5b26ea9d38f97a6b369d22b7fdd403e666a0e4e7