Basics of ajax mailer