- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail 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
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-16-2003 09:39 PM
тАО10-16-2003 09:39 PM
Sendmail file attachment
i have looked at both man pages and maybe im giong blind, but i can't see and option to allow this
can anyone tell me how.
also i have stopped recieving forum notification updates and i used to and haven't changed anything, but yet don't recieve them anymore.
regards
andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2003 09:42 PM
тАО10-16-2003 09:42 PM
Re: Sendmail file attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2003 09:42 PM
тАО10-16-2003 09:42 PM
Re: Sendmail file attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2003 11:15 PM
тАО10-16-2003 11:15 PM
Re: Sendmail file attachment
If you are using a relay server for smtp, make sure its patched. They can play havoc with really perfectly good scripts.
I'm attaching my script though.
Just for reference. Its production.
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
тАО10-17-2003 12:46 AM
тАО10-17-2003 12:46 AM
Re: Sendmail file attachment
mpack/munpack version 1.5 for unix
Mpack and munpack are utilities for encoding and decoding
(respectively) binary files in MIME (Multipurpose Internet Mail
Extensions) format mail messages. For compatibility with older forms
of transferring binary files, the munpack program can also decode
messages in split-uuencoded format.
http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/readme.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 02:37 AM
тАО10-17-2003 02:37 AM
Re: Sendmail file attachment
Within the body of your email add this:
------------------------------------
This is my text. How are you?
[include /tmp/myattach application/octet-stream base]
This is some more text in the middle.
[include /tmp/myexcel.xls application/ms-excel base]
This is a closing message in the email.
----------------------------------------
That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method. If you are running 10.20 make sure that you have a MIME enabled version of elm (PHNE_15835 or later).
Then to use it from a script:
elm -s "My Subject" user@mailserver.com < myletter
Where myletter contains the attachment include statement as well as your message text. It is also necessary that you have a .elm directory
under the sender's home directory because unlike the interactive version of elm the command-line version will not create a .elm directory automatically.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 03:52 AM
тАО10-17-2003 03:52 AM
Re: Sendmail file attachment
Handles 1 message and 1 attachment.. can be modified to handle multiple attachments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 04:46 AM
тАО10-17-2003 04:46 AM
Re: Sendmail file attachment
mailx me@myaddress.com < attachmentname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 05:07 AM
тАО10-17-2003 05:07 AM
Re: Sendmail file attachment
As you can see, there are a multitude of good ways to do this.
In our shop this is one common way using mailx.
Build the file for the mailx process to look similar to the following:
mailx -m -s "Hello" someone@somewhere.com <<-END
`ux2dos file_name_one | uuencode file_name_one.txt`
`ux2dos file_name_two | uuencode file_name_two.txt`
This is all you get.
END
This sends two file attachments to someone@somewhere.com with a subject of Hello and a body of "This is all you get."
OR
From the command line:
echo "This is all you get." | ux2dos file_name_one | uuencode file_name_one.txt |ux2dos file_name_two | uuencode file_name_two.txt | mailx -m -s "Hello" someone@somewhere.com
Then there are options to doing a CC and BC as well.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 05:47 AM
тАО10-17-2003 05:47 AM
Re: Sendmail file attachment
Actually, attached is a text file with a number of ways to use mailx.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2003 07:32 AM
тАО10-17-2003 07:32 AM
Re: Sendmail file attachment
Here's an old thread:
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F0%2C%2C0x41950559ff7cd4118fef0090279cd0f9%2C00.html&admit=716493758+1066419055845+28353475
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2003 07:12 AM
тАО10-20-2003 07:12 AM
Re: Sendmail file attachment
your example is only for a message to be sent, not for a TRUE attachment sent with a message.
Unless Im really mistaken, mailx doesnt support attachments, not in the true sense of an attachment. If you want to try, send a binary file wiht mailx and see that you get a jumble of characters...
I believe ELM does allow real attachments, but I have never used that feature.