This should handle the case where @admins is empty. Currently it fails with an smtp error. Also if you aren't using the @admins var in the view you can lose the @ and make it a local var not an instance var.