Khi bạn chạy lệnh mail sẽ được trả kết quả:
1. Trên CentOS/Redhat 7/6/5:
cài mail command:
Cài mail command:
Sau khi fix lỗi xong, ta check bằng command:
mail: command not foundCách khắc phục lỗi này:
1. Trên CentOS/Redhat 7/6/5:
cài mail command:
Code: Select all
2. Trên Ubuntu/Debianyum install mailx
Cài mail command:
Code: Select all
3. Test gửi emailsudo apt-get install mailutils
Sau khi fix lỗi xong, ta check bằng command:
Code: Select all
echo "Noi dung email" | mail -s "Tieu de email" [email protected]
==> Đăng ký mã VPSSIM Business tại đây ! Thanks.