- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mailx with 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
02-06-2009 07:39 AM
02-06-2009 07:39 AM
mailx with attachment
#what /usr/sbin/sendmail
/usr/sbin/sendmail:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030415 $
Copyright (c) 1998 HEWLETT PACKARD COMPANY and its licensors,
including Sendmail, Inc., and the Regents of the
University of California. All rights reserved.
version.c 8.11.1 (Berkeley) - 15 June 2007 (PHNE_35951)
any one familier with sending attachments on mailx??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2009 07:46 AM
02-06-2009 07:46 AM
Re: mailx with attachment
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=55750
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=837332
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1040286
One or some of these links may help you (googling mailx attachment +site:itrc.hp.com turns up these and more)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2009 07:46 AM
02-06-2009 07:46 AM
Re: mailx with attachment
A _very_ useful cheat-sheet is the attachment by Dave La Mar in his post here:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1046448
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2009 12:29 PM
02-06-2009 12:29 PM
Re: mailx with attachment
here is right way to attach.
#uuencode attachtest attachtest.txt |sendmail name@domain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2009 10:33 AM
02-07-2009 10:33 AM
Re: mailx with attachment
#uuencode filename filaname.txt|sendmail abc.efg@hp.com
OLDsyslog.log
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2009 09:27 PM
02-07-2009 09:27 PM
Re: mailx with attachment
Send EMAIL attacments by mail.
*******************************************************************************
E-mail attachments:
Assume that "test.txt" has the contents for the body of the mail, "test1"
has the contents for the first attachment and "test2" has the contents
for the second attachment)
CODE:
ux2dos text1 > text1.txt
ux2dos text2 > text2.txt
uuencode test1.txt test1.txt >> test.txt
uuencode test2.txt test2.txt >> test.txt
mailx -m -s "Test Subject" tpardike@????.??? < test.txt
This sends a mail with the subject and a body and 2 attachments.
"Test Subject" is sent as the SUBJECT of the mail.
test.txt is sent as the BODY of the mail.
test1.txt is sent as ATTACHMENT 1 in the mail.
test2.txt is sent as ATTACHMENT 2 in the mail.
********************************************************************************
Thanks,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2009 09:43 PM
02-07-2009 09:43 PM
Re: mailx with attachment
#!/usr/bin/sh
mailx -m -s "Stuff..." whoever@somewhere.com << END
$(ux2dos /etc/hosts | uuencode /etc/hosts)