- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- force mailx to use input file as 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
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
тАО10-19-2000 12:08 AM
тАО10-19-2000 12:08 AM
force mailx to use input file as attachment
Is tehre a way to make mailx use the input from pipe as an attachment by default, or should they use another mail program
TIA
Paul Gold
CAST Systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 12:22 AM
тАО10-19-2000 12:22 AM
Re: force mailx to use input file as attachment
There are three ways to send and attachment.
# (1) Send in body of e-mail
mailx -s 'Subject Lines goes here' user@company.com < filename.txt
# (2) To send as an attachment
/usr/bin/uuencode filename.Z filename.Z | /usr/sbin/sendmail user@company.com
# (3) To send as an attachment with Subject, From and To
(
echo "From:
echo "To:
echo "Subject:
echo "This is the body of the e-mail.^M
If you are having any problem with this file please give us a call.^M^M^M
/usr/bin/uuencode /local/filename filename
) | /usr/sbin/sendmail user@company.com
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 12:25 AM
тАО10-19-2000 12:25 AM
Re: force mailx to use input file as attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2000 12:26 AM
тАО10-19-2000 12:26 AM
Re: force mailx to use input file as attachment
there are several issues for this.
Do a SEARCH (button upper left corner)
Search criterea: 'mailx AND attachment'
Choose 'boolean' option
Hit the 'community forums' toggle button
and go.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2000 09:39 AM
тАО10-27-2000 09:39 AM
Re: force mailx to use input file as attachment
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9,00.html
Regards,