- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- send email with attachment in command line
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
тАО06-26-2000 06:48 PM
тАО06-26-2000 06:48 PM
send email with attachment in command line
I need to find out how to send attachment in HP-UX command line? I have successfully send attachment using ELM interactive mode.
- Tags:
- attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2000 08:41 PM
тАО06-26-2000 08:41 PM
Re: send email with attachment in command line
This will work on an ASCII file, if the attachment is binary I think you will have to UUENCODE it.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2000 03:54 AM
тАО06-27-2000 03:54 AM
Re: send email with attachment in command line
#uuencode your_file_name | sendmail -v user@mail
There has been alot of interest in this area, for some other ideas, use the search button and search for "attachment"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2000 04:34 AM
тАО06-27-2000 04:34 AM
Re: send email with attachment in command line
MPACK is available from the HP-UX Software portal.
Uuencode doesn't work very well with the Groupwise mail client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2000 12:04 PM
тАО08-09-2000 12:04 PM
Re: send email with attachment in command line
First make sure you at least have Elm 2.4 on your box, and my example is for a HPUX 10.20 (you need MIME capability) so be sure you have patch PHNE_15835 (it doesn't cause a reboot to load).
The next thing you have to do is create a small file (ex include.file) that is used to send the file as an attachment. There are a few things you could read on this for more details at HP's IT Resource if you want. But simple create a file with this syntax:
[include text.txt text/plain base64]
where text.txt is your file.
The general format is: [include filename type/subtype encoding]
type/subtype= text/plain, image/gif, image/jgp etc..
encoding=base64, quoted-printable etc...
Another example might be for a Word doc:
[include file.doc application/msword base64]
Now from the command line to send this file as an attachment to user_abc:
elms -s 'Test attachment file' user_abc@your_org.com
What this did was email to user_abc@your_org.com the file test.txt with a subject line of Test attachment file. If you sent a Word doc it would come across and be a Word file attachment. It works.
You can do it with text files; image.jpg or gif files; and more. Just change the include stmt like.....And you can use this and build it right into job streams, so you can then email reports and files when batch jobs are done....It's a real paper saver.
If you want to do some lookups on IT Resource for more info.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2000 10:48 AM
тАО12-04-2000 10:48 AM
Re: send email with attachment in command line
when i send a mail from unix box to microsoft outlook. when i receive in microsoft outlook
its not attachment.
suppose if i want to send some attachment from microsoft outlook. there is one option for attachment. like resume.doc and some pdf file like that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2000 11:01 AM
тАО12-04-2000 11:01 AM
Re: send email with attachment in command line
# uuencode file_name file_name | sendmail -v nnn.nnnn@eee.com
Specify the filename twice as shown as per man page.
The other solutions will work as well. Have you tried the suggestions?
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2000 11:17 AM
тАО12-04-2000 11:17 AM
Re: send email with attachment in command line
The Include statement works for doing this.
I have even zipped files, they were just ascii files on the UNIX box and sent them using the Include coded as if they were Word docs...they came across as attached files and when you clicked on it, MS automatically unzipped it...and voila...
I can send a file from the UNIX command line and it will appear as a Word or Excel attached file....what's your email??? maybe we could try sending you an excel file and let's see how it comes to you...
regards,
rcw