- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to send and attachment through mail comman...
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
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
тАО08-29-2006 11:17 AM
тАО08-29-2006 11:17 AM
How to send and attachment through mail command
I would like send a tar file as an attachment through an mail command from an hpux system
I have tried below syntax for file
mail "system"
Please suggest me how can i send an attachment using a mail command
Regards
Dinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2006 11:21 AM
тАО08-29-2006 11:21 AM
Re: How to send and attachment through mail command
(echo "Subject: tar file" ; uuencode /path/to/file.tar /path/to/file.tar) | /usr/sbin/sendmail someone@somewhere.com
Just substitute your information where applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2006 11:40 AM
тАО08-29-2006 11:40 AM
Re: How to send and attachment through mail command
# uuencode f1.tar f1.tar | mailx -m -s "f1.tar Attached" your@email.addr
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2006 12:59 PM
тАО08-29-2006 12:59 PM
Re: How to send and attachment through mail command
Hi
Sorry i have tried both syntax..
Its not working for me..
Regards
Dinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2006 01:15 PM
тАО08-29-2006 01:15 PM
Re: How to send and attachment through mail command
A working script you can emulate.
http://www.hpux.ws/mailfile2
The code is readable and will help.
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
тАО08-29-2006 02:50 PM
тАО08-29-2006 02:50 PM
Re: How to send and attachment through mail command
Your mail relay may be blocking messages with large attachments. Do you receive anything (i.e. a message with attachment stripped) on the other end? Check mail.log on your HP-UX system and relevant logs on your mail relay.
Will a message with a smaller attachment make it to its destination? How about with a different type of file attached? What if you send the attachment to a local user (bypassing the relay agent)? Or is it an issue with the email application or anti-virus software on the client?
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 10:13 AM
тАО08-30-2006 10:13 AM
Re: How to send and attachment through mail command
uuencode file.tar file.tar | mail ........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 06:09 PM
тАО08-30-2006 06:09 PM
Re: How to send and attachment through mail command
http://hpux.connect.org.uk/hppd/hpux/Users/mpack-1.6/
that encodes the attachment using MIME.
The usage is fairly simple through command line, like
mpack -s "Subject" file address
Cheers
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 09:19 PM
тАО08-30-2006 09:19 PM
Re: How to send and attachment through mail command
I found somewhere this utility ....
see attachment.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 12:27 AM
тАО08-31-2006 12:27 AM
Re: How to send and attachment through mail command
[include /path/file.ext text/plain base64]
Then I use command line:
elm -s "my file" anybody@company.com < /path/include.file
It doesn't cost a thing, it's easy....
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 11:11 AM
тАО08-31-2006 11:11 AM
Re: How to send and attachment through mail command
I have posted this in house doc for many uses of mailx. We use mailx nearly exclusively in our shop. Hope you find one that matches your need.
Regards,
dl