Я пытаюсь sending mail с вложением, используя shell script, но я не получаю почту.
sending mail
shell script
Shell Script
#!/bin/bash $ echo "Mail Sent" | mail -s "a subject" -a "Report_by_Customer_20190614_131246.xls" test@gmail.com
Используйте mutt. Добавить список файлов, которые вы хотите прикрепить
mutt
echo "body" | mutt -s "subject" -a attachment0 attachment1 [...] -- test@gmail.com
Также здесь Вы можете найти другие варианты