tweaked mailer, added small debugging msg to ajax_sendmail()