- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mail from 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
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-12-2001 02:23 AM
тАО04-12-2001 02:23 AM
currently i have only found syntax for elm to send a file as an email not as an attachment.
The sysntax i have used is :-
elm -s "subject" User@server < filename
can anyone tell me how to send tha file as an attachment please
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 02:33 AM
тАО04-12-2001 02:33 AM
Re: Mail from command line
Cheers,
-ChaZ-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 02:53 AM
тАО04-12-2001 02:53 AM
Re: Mail from command line
(cat text; uuencode file1 file1)| mailx user
this example will send a text with an attachement.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 04:03 AM
тАО04-12-2001 04:03 AM
Re: Mail from command line
mailx -s "
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 04:25 AM
тАО04-12-2001 04:25 AM
Solutionhttp://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 04:26 AM
тАО04-12-2001 04:26 AM
Re: Mail from command line
unencode localfilename attachedfilename |sendmail user@hp.com or
unencode localfilename attachedfilename |mailx user@hp.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 04:47 AM
тАО04-12-2001 04:47 AM
Re: Mail from command line
first create a dummy file:
# cat /tmp/dummy
[include /tmp/jimbackup.010208.5037.log application/msword base64]
Then issue the elm command:
elm -s 'test' jim_Moffitt@notes.teradyne.com < /tmp/dummy
This has worked for me without any problems.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2001 05:25 AM
тАО04-12-2001 05:25 AM
Re: Mail from command line
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
Regards,
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2001 04:23 AM
тАО04-16-2001 04:23 AM
Re: Mail from command line
This forces many steps!
1. mime-encode your file and put it somewhere. (This is more daunting than it appears as there is no mimencode by nature on HP-UX, and the one on the porting center is partially broken!)
2. build a file for sendmail which contains the required size, mime-type, and of course syntax for the attachment, and anything else you need with it. I.E. Subject, Message Body, etc.... Sendmails syntax, and requirements for empty lines for this is not easy by any means!
There is a patch for ELM on HP-UX which allows attachments with a single file line with the attachment and mime-type.
mail, mailx, and standard elm dont support binary file attachments, only text which is placed as the message body. I.E.
mailx -s 'subject' someone@dom.com < /tmp/mailfile.txt
I use the patched elm to send binary attachments where necessary, and include the "include" statement within scripts to make it on the fly and control file names, etc....
Literally I spent 2 days trying to get sendmail to work with the attachments, get a mime encoder working, and only about 20% of the mails worked. Too much work re-inventing the wheel for me!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2001 06:46 AM
тАО04-19-2001 06:46 AM
Re: Mail from command line
I have a soloution with mpack.
Just one more question on this , is there any way to send multiple attachments.
My current soloution is to tar the files I want to send, but this could be a problem when sending out to user with a lack of winzip or similar.
Any suggestions ??
Once again, everyone thanks for you help