- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to send the attachment through sendmail/mailx
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
тАО06-30-2009 02:12 AM
тАО06-30-2009 02:12 AM
how to send the attachment through sendmail/mailx
How can i send the attachment in HP-UX.
I have tried below option.
uuencode kk.txt|mailx -s "subject"
after that it's not coming in # promt.
I see the below link also.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1055599
Please need your input.
Regards
Karki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 02:19 AM
тАО06-30-2009 02:19 AM
Re: how to send the attachment through sendmail/mailx
see the below example
cat your_file | mailx -s"test" you@example.com
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 02:28 AM
тАО06-30-2009 02:28 AM
Re: how to send the attachment through sendmail/mailx
uuencode -m kk.txt - | mailx -s subject email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 02:32 AM
тАО06-30-2009 02:32 AM
Re: how to send the attachment through sendmail/mailx
This is equivalent of
mailx -s "subject"
i want file as a attachment.
Regards
Karki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 02:55 AM
тАО06-30-2009 02:55 AM
Re: how to send the attachment through sendmail/mailx
>how to send the attachment through sendmail/mailx
(1)#uuencode LOGS.txt LOGS.txt | mailx -s " subject " user@xyz.com
this will send the mail with attachment .....if you are not able read the txt then save it and open with wordpad.
here is the diffrence between eg (1) & (2)
(2)# mailx -s " subject " .user@xyz.com
this will send the mail with body (content ) of txt
Regards,
Subodh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 03:56 AM
тАО06-30-2009 03:56 AM
Re: how to send the attachment through sendmail/mailx
You may want:
# uuencode kk.txt kk.txt|mailx -s "subject"
...which sends the mail and returns the prompt. See the manpages for 'uuencode'.
That said, I have always found Dave La Mar's cheat-sheet for mail and mail attachments invaluable. He attached it in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1075053
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2009 03:56 AM
тАО06-30-2009 03:56 AM
Re: how to send the attachment through sendmail/mailx
I recommend this script:
http://www.hpux.ws/?p=7
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
тАО06-30-2009 06:09 AM
тАО06-30-2009 06:09 AM
Re: how to send the attachment through sendmail/mailx
# uuencode kk.txt kk.txt|mailx -s "subject"
comes to your mailbox as a garbled bunch of text instead of attachment, it might mean that, you mail gateway has a different way of interpreting MIME headers. You can overcome this minor headache by inserting a -m switch to your mailx command, like this:
# uuencode kk.txt kk.txt|mailx -m -s "subject"
This always works for me.
Hope this helps.
PS. You have only assigned point to 5 answers out of a possible 75+. Please show courtesy to those trying to help you and assign points to the answers on your questions linked below:
https://forums11.itrc.hp.com/service/forums/pageList.do?userId=WW85728&listType=unassigned&forumId=1
UNIX because I majored in cryptology...