change mail_type in sample.js