- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Sending attachments with mail utility
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 03:55 PM
тАО10-20-2008 03:55 PM
Is it possible to send attachments via the mail utility? If so, what syntax do I need to use? Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 06:03 PM
тАО10-20-2008 06:03 PM
Solutionuuenconde filename filename | mail -s "subject" user@domain
Where filename is the name of the file you want to attach (yes, it's specified twice)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 08:04 PM
тАО10-20-2008 08:04 PM
Re: Sending attachments with mail utility
# mail -s "Your Subject" -a file1_to_be_attached -a file2_to_be_attached user@domain <~
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 02:00 AM
тАО10-21-2008 02:00 AM
Re: Sending attachments with mail utility
# mutt -s "Your Subject" -a file1_to_be_attached -a file2_to_be_attached user@domain
..the easy way to send attachments in linux, should you have mutt installed.
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 05:39 AM
тАО10-21-2008 05:39 AM
Re: Sending attachments with mail utility
See Dave La Mar's attachment in this post for a nice summary guide:
http://itrc.hp.com/service/forums/questionanswer.do?threadId=1055549
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 11:29 AM
тАО10-21-2008 11:29 AM
Re: Sending attachments with mail utility
Thanks for the help. I went ahead with the uuencode method, and it works great.
The other approaches mentioned also look good, and I'll keep them in mind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2008 11:26 PM
тАО10-21-2008 11:26 PM
Re: Sending attachments with mail utility
Late but a script with some enhanced abilities, using uuencode.
http://www.hpux.ws/mailfile2
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com