Posted on 13th April 2010No Responses
Jak wysłać maila z shella
Najprostszym sposobem na wysłanie maila z shella jest wydanie polecenia
echo "text content" | mail -s "test email" test@example.com
Natomiast aby wysłać dodatkowo załącznik należy skorzystać z programu mutt
mutt -s "test email" -a /home/damian/testfile.jpg test@example.com < emailbody.txt
Inne posty:
Comments
Leave a Response