- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to attach documents with sendmail?
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
тАО03-03-2006 06:00 PM
тАО03-03-2006 06:00 PM
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 06:43 PM
тАО03-03-2006 06:43 PM
Re: How to attach documents with sendmail?
Single attachment could be send using
# uuencode /etc/hosts hosts | sendmail abc@xyz.com
Multiple attachment could be send using
#uuencode /etc/hosts hosts;uuencode
/etc/services services)| sendmail abc@xyz.com
You can use mailx or elm as well in above examples.
If you want to send MIME attachement, then
Add the following lines. to /usr/share/lib/mailx.rc file
set charset=X-roman8
set charset=us-ascii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 08:09 PM
тАО03-03-2006 08:09 PM
Re: How to attach documents with sendmail?
I will use mailx. Then?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 08:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2006 09:56 PM
тАО03-03-2006 09:56 PM
Re: How to attach documents with sendmail?
uuencode is working. But the attachment is coming in jumbled format. It should come as it is. Any more info?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2006 02:21 AM
тАО03-04-2006 02:21 AM
Re: How to attach documents with sendmail?
as the name already suggest, uuencode encodes the file you want to transmit. The get the file to its original state, you should decode it first with 'uudecode [filename]'. This way it should be readable again.
greetz,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2006 04:16 AM
тАО03-04-2006 04:16 AM
Re: How to attach documents with sendmail?
http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.6/
Run like so:
/usr/local/bin/mpack -s "svr004 cfg2html" /opt/cfg2html/svr004.html gwild@mydomian.ca
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2006 10:11 AM
тАО03-04-2006 10:11 AM
Re: How to attach documents with sendmail?
http://www.hpux.ws/mailfile2
uses sendmail, is production tested and easily modified.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2006 07:06 AM
тАО03-05-2006 07:06 AM
Re: How to attach documents with sendmail?
Need to use "-m" switch with mailx for MIME messages. For ex. to send the /tmp/myfile as an attachment use:
# uuencode /tmp/myfile /tmp/myfile | mailx -m -s "Subject"
cheers!