- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mailx - send an email with a file 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
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
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
тАО07-27-2006 01:37 AM
тАО07-27-2006 01:37 AM
mailx - send an email with a file attachment
i am using HP-UX 11.23 PARISC on an rp4440.
To send emails to our application users we are using the sendmail service. We do not had any problems in the past with sendind emails like this: cat filename < mailx -s "subject" username
Now we want so send the filename not within the email but as an attachment. Can someone help me?
Sendmail-Version is Sendmail 8.11.1/8.11.1
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 01:39 AM
тАО07-27-2006 01:39 AM
Re: mailx - send an email with a file attachment
From the man page:
uuencode foo foo | mailx -s 'new program' friend
"
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 01:41 AM
тАО07-27-2006 01:41 AM
Re: mailx - send an email with a file attachment
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=992688
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 02:00 AM
тАО07-27-2006 02:00 AM
Re: mailx - send an email with a file attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 03:21 AM
тАО07-27-2006 03:21 AM
Re: mailx - send an email with a file attachment
# mail_files
/usr/local/bin/mail_files[138]: shift: The specified number is not valid for this command.
Line 138 is the last line of this:
case "$1" in
-* ) : ;; # ignore it, let getopts handle flags
* ) TO=$1 ; shift ;;
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 05:53 AM
тАО07-27-2006 05:53 AM
Re: mailx - send an email with a file attachment
Attached is an inhouse doc we use with multiple uses of mailx including tha attachment.
Feel free to use whatever is usefull.
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 06:52 AM
тАО07-27-2006 06:52 AM
Re: mailx - send an email with a file attachment
Take a look at this script, it has code you can lift.
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
тАО07-27-2006 10:00 AM
тАО07-27-2006 10:00 AM
Re: mailx - send an email with a file attachment
# (cat /home/filename.txt; uuencode /home/attach.pdf attach.pdf) | mailx -s 'SubjectLine'
-r replyable.email@yourcompany.com
recepient.email@theircompany.com
Hope it works for you.
Mike