- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Not able to mail message body & attachment tog...
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
тАО11-08-2006 11:10 PM
тАО11-08-2006 11:10 PM
Not able to mail message body & attachment together
I am able to send message body:
# cat file_of_message_body | mailx -s "Test_Mail" someone@somewhere.com
I am also able to send an attachment:
# ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com
But i want to send message body & attachment together in a mail, so i tried:
# ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com < file_for_email_message_body
and
# cat file_for_email_message_body
| ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com
But I am not getting the attachment using above command,
Please suggest sothat I can get the email message body & attachment together.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 11:24 PM
тАО11-08-2006 11:24 PM
Re: Not able to mail message body & attachment together
Try this:
( cat file_of_message_body
ux2dos /path_to/some_file | uuencode some_file.txt some_file.txt
) | mailx -s "Test_Mail" someone@somewhere.com
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 11:46 PM
тАО11-08-2006 11:46 PM
Re: Not able to mail message body & attachment together
http://www.hpux.ws/mailfile2
Its got a body.
Its got an attachment.
To me its kinda cute. LOL.
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
тАО11-09-2006 04:09 AM
тАО11-09-2006 04:09 AM
Re: Not able to mail message body & attachment together
There are a number of examples in the attached, including multiple attachments with body, etc.
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 06:32 AM
тАО11-09-2006 06:32 AM
Re: Not able to mail message body & attachment together
uuencode file.txt file.txt | echo "hi praveen,\n\ntest email with body and attachment.\n\nregards" | mailx -m -s "test email" abc@xyz.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2006 04:29 PM
тАО11-09-2006 04:29 PM
Re: Not able to mail message body & attachment together
I tried with all of these...
# ( cat file_of_message_body | ux2dos /path_to/some_file | uuencode some_file.txt some_file.txt
) | mailx -s "Test_Mail" someone@somewhere.com
and
# ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com < file_for_email_message_body
and
# uuencode file.txt file.txt | echo "hi praveen,\n\ntest email with body and attachment.\n\nregards" | mailx -m -s "test email" abc@xyz.com
and using the above commands, I am getting message body but not getting the attachment.
Please suggest..
Hi SEP...
can you please tell me how to use...
http://www.hpux.ws/mailfile2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2006 05:38 PM
тАО11-12-2006 05:38 PM