mailer setup with ajax