nail/mail automatisieren

Software besorgen und anwenden
Post Reply
Message
Author
swift

nail/mail automatisieren

#1 Post by swift »

Hi,

ich würde gerne über nail (oder eine anderes Programm) automatisch Systemmails (an /var/spool/mail/USER) schicken, am besten über ein Shell-Skript.
nail -s SUBJECT -q TEXTFILE USER schreibt mir eine Mail mit Subject und Text. Ich muss allerdings zum senden <Strg+D> drücken oder " ~. " eingeben. Weiß jemand wie ich das automatisieren kann?

Vielen Dank,
swift

ratte

Re: nail/mail automatisieren

#2 Post by ratte »

ich mach's mir mit mutt:

<blockquote><pre><font size="1" face="">code:</font><hr><font face="Courier New" size="2">
echo "my bodytext" | /path/to/mutt -s "subject line" -a /path/to/attachement username
</font><hr></pre></blockquote>

ratte

Post Reply