Replace Smtp with SMTP.
Use var to define empty arrays.