added options for smtp hostname and port