Ah, are you using this in a BPM? I am using it in a form customization and using the SMTPClient class
SmtpClient client = new SmtpClient(“smtp.office365.com”);
I’m not sure if the Ice.Mail.SmtpMailer class implements the SMTP client, let me me take a look