Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Our Linux servers use mailsend to pack up reports and send them through sendmail as attachments. This is sendmail's website, and you can download the source.
Our Linux servers use mailsend to pack up reports and send them through sendmail as attachments. This is sendmail's website, and you can download the source.
I'm running postfix on this server. Can I use this package? If YES, where will be an ideal directory to download "mailsend1.15b5.tar.gz"? Shall I run "telnet" at start OR just this package ONLY?
There will be many lines that look like the last one before the "...". You will also need to indicate that the e-mail is a multi-part message somewhere in the header. I will leave the details as an exercise for you to complete.
echo "Body" | mutt -a file1 -a file2 -s "Subject" email@domain.com
It depends on your experience in shell scripting.
| means take the output of the left command and "inject" it in the right command.
echo "body" .. prints "body"
mutt takes as input the body of the email
So this command will send a mail with subject "Subject" to recipient email@domain.com , attaches file1 and file2 and in the body of the email adds a single line: "Body".
If you have the body of the email in file body.txt (containing several lines for example), you can also do:
cat body.txt | mutt ...
I highly suggest that you read the man page of mutt, I don't know all the options and it depends on what you need. Especially the part about muttrc where you can put the "from user1@domain.com"
Ah yes, I haven't tried this command actually but it should work. Pdf or whatever should work.
echo "Body" | mutt -a file1 -a file2 -s "Subject" email@domain.com
It depends on your experience in shell scripting.
| means take the output of the left command and "inject" it in the right command.
echo "body" .. prints "body"
mutt takes as input the body of the email
So this command will send a mail with subject "Subject" to recipient email@domain.com , attaches file1 and file2 and in the body of the email adds a single line: "Body".
If you have the body of the email in file body.txt (containing several lines for example), you can also do:
cat body.txt | mutt ...
I highly suggest that you read the man page of mutt, I don't know all the options and it depends on what you need. Especially the part about muttrc where you can put the "from user1@domain.com"
Ah yes, I haven't tried this command actually but it should work. Pdf or whatever should work.
Hi nx5000,
mutt is a wonderful package, easy and straight forward to use,
On echo "message_body", to change a new line just pressing [Enter]. Pressing [Enter] twice adds a blank line. The options;
-b for bcc followed by email_address
-c for cc followed by email_address
Any format of doc, .jpd, .pdf, .doc, etc can be attached.
Hummm easy I'm not sure.
Using mutt for this case (in CLI) is very easy yes but start mutt TUI (simply by typing "mutt") and that's another story. It's like when you discover vi, it's either you love it or hate it..
I'm using it as my localmail reader (syslog, logwatch). It has very powerfull possibilties.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.