
August 28th, 2006, 08:29 AM
|
|
Registered User
|
|
Join Date: May 2005
Posts: 14
Time spent in forums: 3 h 20 m 3 sec
Reputation Power: 0
|
|
|
Send mail with attachment from command line
Hello
I have a question. I'm trying to send an email containing an attachment, directly from the command line.
If I use sendmail, I have something like this:
cat filename | uuencode filename | sendmail -fSender<senderemail@mail.com> cristi.tane@xnet.ro
This sends filename as an attachment, but I can't seem to be able to enter a Subject and a message body.
On the other hand, if I use mailx:
cat filename | uuencode filename | mailx -s "Subject" cristi.tane@xnet.ro
This sends filename as an attachment, but in this case I can't seem to be able to enter a message body in the command line.
Any ideas?
Thank you.
|