- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Send email with body and attachment
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
Forums
Discussions
Discussions
Discussions
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
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-18-2005 03:04 AM
08-18-2005 03:04 AM
# uuencode abc.tar abc.tar | mailx -m -s "send tar attachment" email@yahoo.com < body.txt
But I can only get email with body, but no attachment!
However, if I tried this way:
# uuencode abc.tar abc.tar >> body.txt
# mailx -m -s "send tar attachment" email@yahoo.com < body.txt
then I can get email with both body and attachment
Why? I'd like to send email with one single command line, how can I use "pipe" to do this?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:08 AM
08-18-2005 03:08 AM
Re: Send email with body and attachment
http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.6/
The attach like so:
mpack -s test -d test.doc you@yourdomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:14 AM
08-18-2005 03:14 AM
Re: Send email with body and attachment
One tool I like to use to easily send attachments is the [include] command :
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x41950559ff7cd4118fef0090279cd0f9%2C00.html&admit=716493758+1091120147036+28353475
Or you can search for something like MIME attachments and you should get some other things...
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:17 AM
08-18-2005 03:17 AM
Re: Send email with body and attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:18 AM
08-18-2005 03:18 AM
Re: Send email with body and attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:36 AM
08-18-2005 03:36 AM
Re: Send email with body and attachment
Now I resorted to less elaborate sendmail to do the same thing as follows
uuencode a.txt a.txt | sendmail user@domain.com
I know I do not get the subject line but I can sacrifice that much in my humble opinion instead of figthing with exchange admins.
I have made a header comparison between the messages received by my outlook client from these two commands:
uuencode a.txt a.txt | sendmail user@domain.com
uuencode a.txt a.txt | mailx user@domain.com
and I saw that, latter command, i.e., mailx, inserts these headers into the message, which I presume causes the attachment showing as plain text:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I think exchange server stopped treating these headers as attachments at some point during the past year for me.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:39 AM
08-18-2005 03:39 AM
Re: Send email with body and attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 04:02 AM
08-18-2005 04:02 AM
Re: Send email with body and attachment
Big thanks...
Now it started working again with
uuencode a.txt a.txt | mailx -s "attached file" -m user@domain.com
now it comes with attachement and with a subject line.
Cheers...
UNIX because I majored in cryptology...