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:

  1. Pytanie: Jak logować się przez SSH bez hasła
  2. Pytanie: Jak zamontować obraz ISO w linuxie
  3. Pytanie: Jak stworzyć obraz ISO w linuxie
  4. Pytanie: Jak zsynchronizować Linuxa z serwerem NTP
  5. Jak zamazać dane na dysku
Comments
Leave a Response
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Comment moderation is enabled. Your comment may take some time to appear.