tmp to var, sendmail