- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail; Insert file to an item
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
тАО04-18-2000 04:02 PM
тАО04-18-2000 04:02 PM
Sendmail; Insert file to an item
I try to send mail from HP-UX B.10.20 9000/811 to users own mail system (MS
Outlook). That rules OK, but
the question is, how can I insert file to an item ?
The command what I use is :
/usr/sbin/sendmail -t
where the itemname is a file which's like:
To:recepient@mail.address
Subject:Headers of the message
...
message body
...
Thanks for the assistance.
Regards
Markku Muhonen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2000 07:36 PM
тАО04-18-2000 07:36 PM
Re: Sendmail; Insert file to an item
eg
mailx -s "{your subject title}" "{to targets}" < myfile
This will make the contents of myfile the actual contents of the message.
hope it helps
Terja
PS. Terveisia suomalaiselta toiselta puolelta maapalloa.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2000 09:26 PM
тАО04-18-2000 09:26 PM
Re: Sendmail; Insert file to an item
thanks for Your help.
But my final purpose is send a mail where I tell to a receiver that "Here is
Your binary file to print".
And that binary file must be same as it was when I send it from HP-UX.
Regards
-markkum-
PS. Terveiset kevaisesta Suomesta.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2000 11:11 PM
тАО04-18-2000 11:11 PM
Re: Sendmail; Insert file to an item
the following syntax.
#uuencode /etc/hosts hosts.txt | sendmail -v user@hostname.com
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2000 12:50 AM
тАО04-19-2000 12:50 AM
Re: Sendmail; Insert file to an item
text. If I understand your question, you presently have a file "item" that
contains the subject header, message text, etc. You wish to also attach a file
"binary". To do so, try:
sendmail recipient@maildomain << EOM
`cat item`
`uuencode binary [file name for attachment]`
EOM
The above contains backtiks (accent grave) NOT single quotes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2000 01:37 AM
тАО04-19-2000 01:37 AM
Re: Sendmail; Insert file to an item
thanks for Your good advises. You're gurus!
Alan is right, I need to do that kind of script and call it from my program.
Best regards
Markku
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2000 12:25 PM
тАО07-14-2000 12:25 PM
Re: Sendmail; Insert file to an item
I?ve read the responses for this message on June 2/2000. I?ve been working with uuencode and mailx and I?ve used it with mailx to insert a file to a mail item with the next commands:
$uuencode file.txt file.txt >> item
$cat item | mailx -s 'subject' recipient@maildomain
where item contains the message text.
It works fine with our mail system, SoftArc First Class, but with other mail like yahoo.com and others, the file attached appears at the bottom of the text message in MIME format, not like and attach file.
I have to send mail to many mail clients and I want to know if there is a method to attach files that can be read by the major number of them.
Thanks for your responses.
Bye.
Gabriel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2000 11:34 AM
тАО08-04-2000 11:34 AM
Re: Sendmail; Insert file to an item
BUT...if your trying to attach a file and send the file via sendmail as an attachment than you can do this also.
First make sure you at least have Elm 2.4 on your box, and my example is for
a HPUX 10.2 (you need MIME capability) so be sure you have patch PHNE_15835 (it doesn't cause a reboot to load). To give you an example I ftp'd an excel spreadsheet to my box called test.xls Then I did the following:
First create a dummy file with the following line (just as you see it here)
[include test.xls application/msexcel base64]
Second from the command line:
elm -s "This is a test" user@hp.com
What this did was email to user@hp.com the file test.xls (and it comes as attached excel file) with a subject line of This is a test. It works.
You can do it with text files; image.jpg or gif files; and more. Might want to do some
lookups on IT Resource for more info.
It's a very handy tool that programmers can add right into the job streams and email reports to users instead of printing them....makes for paperless environment.
Regards,