fix mail problem by using sendmail