- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Attachment with 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
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
03-05-2006 07:36 PM
03-05-2006 07:36 PM
Attachment with mailx
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2006 07:50 PM
03-05-2006 07:50 PM
Re: Attachment with mailx
Here is the sysntax for attaching the file thrugh mailx ---sendmail....
uuencode filename.txt filename.txt | mailx -m -s "Message Subject"
Regards,
Abhijit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 01:41 AM
03-06-2006 01:41 AM
Re: Attachment with mailx
http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.6/
Mpack and munpack are utilities for encoding and decoding
(respectively) binary files in MIME (Multipurpose Internet Mail
Extensions) format mail messages.
Run it like so:
/usr/local/bin/mpack -s "svr004 cfg2html" svr004.html gwild@mydomain.ca
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 07:40 AM
03-06-2006 07:40 AM
Re: Attachment with mailx
Posted many times. Please see attached examples.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 08:09 AM
03-06-2006 08:09 AM
Re: Attachment with mailx
Possible, but easier with sendmail.
http://www.hpux.ws/mailfile2
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-06-2006 09:56 AM
03-06-2006 09:56 AM
Re: Attachment with mailx
(cat /home/bodytext.txt; uuencode /home/attachment.txt
/home/attachment.doc | mailx -s SUBJECT-LINE -r from.name@company1.com to.name@company2.com
Note: no white space allowed in the -s parameter. Best of luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2006 09:13 PM
03-06-2006 09:13 PM
Re: Attachment with mailx
just a note.
Take care that with last Outlook patch you could not be able to see the attchmnet in a correct way.
See this thread for more info:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1004490&admit=-682735245+1140770287286+28353475
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:33 PM
03-09-2006 08:33 PM
Re: Attachment with mailx
please, remember to assign point who spent time and affort helping you. It's only a bit thing but really appreciated.
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 09:45 PM
03-09-2006 09:45 PM
Re: Attachment with mailx
in script we generally, use the following technique:
export LOG_PATH=/home/logger/db/logfiles
export dt=`date +%Y-%m%d`
export emailadd1="user3@mysvr.mu"
#
###Commands
##
/usr/bin/uuencode $LOG_PATH/myprocess"$dt".log "proc.log"|mailx -m -s "This is the Log for - `date`" $emailadd1
#
# End
you may use it at the command line level as well.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 10:09 PM
03-09-2006 10:09 PM
Re: Attachment with mailx
I had the same problem and decided to use the program nail instead of mailx.
You can download it from the HP-UX proting archive
http://hpux.asknet.de/hppd/hpux/Networking/Mail/nail-11.25/
and it's fairly simple to install and use.
example:
nail -s "test for nail" -a file_to_attach your_address@your_server
Regards
Eberhard