Results 1 to 7 of 7
I tried to use mail functionality of linux to send email to others, but don't know how to attach a file, can anybody help? Thanks,...
- 01-28-2012 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
how to send email in linux with attachment?
I tried to use mail functionality of linux to send email to others, but don't know how to attach a file, can anybody help? Thanks,
- 01-28-2012 #2
What do you mean by "mail functionality"? If you're using a specific command, you can check its man page by running the command:
in the terminal.Code:man COMMAND
DISTRO=Arch
Registered Linux User #388732
- 01-29-2012 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
I don't know which command specifically to use. I looked the command mail, but it does not seem to provide attachment functionality. Maybe I missed something, but really appreciated for any further help.
- 01-29-2012 #4
It really depends on what you're trying to do. If you just want a functional desktop, then it should be easy using any graphical email client to attach files. Thunderbird and Evolution come to mind, as does kmail.
If however you want to use the command line to send email, you can use several command line email clients such as Mutt or Pine. But if you want to use email functionality from scripts or automated processes, then you can use the mailx command directly.
It goes something like this:
Code:echo "This is the message body"|mailx -s "subject" -a /path/to/attachement recipient@example.bla
Can't tell an OS by it's GUI
- 01-29-2012 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
- 01-30-2012 #6
Yes, just use a comma separated list. Or read the man page for more details, because you can also cc, bcc or define the sender field.
Can't tell an OS by it's GUI
- 01-31-2012 #7
just like in win for me, click click, regardless of OS,
usually involves clicking on an attachment box,
then a bigger pop up box comes up where you find the file and click on it,
,
usually that shows up in the email compose page so you know before sending that there is an attachment(s) with the email
i'm talking the typical yahoo, gmail, aol, etc optionsLast edited by jonyo; 01-31-2012 at 01:50 AM.


Reply With Quote
