With Mailing Function (credit to PHPMailer)