- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mailx
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
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
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
05-02-2001 08:28 AM
05-02-2001 08:28 AM
is there a way to use mailx to send me an attachment rather than a dump of the file? S/Cathy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:07 AM
05-02-2001 09:07 AM
Re: Mailx
echo "[include /tmp/excel.csv application/msexcel base64]" | elm -s "Excel file" dummy@dummy.com
You will need to play around with the "application/msexcel" part in order to send other attachment types.
Regards,
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:21 AM
05-02-2001 09:21 AM
SolutionAnother method is to use UUENCODE - see the following thread for details :-
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
Regs,
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:24 AM
05-02-2001 09:24 AM
Re: Mailx
converted to an Excel spreadsheet? What about Access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:26 AM
05-02-2001 09:26 AM
Re: Mailx
Here is a thread that discusses in more detail what was suggested. It also shows uuencode and a third party software option....
It's a handy thread, I keep it bookmarked:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
Hope it helps,
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:32 AM
05-02-2001 09:32 AM
Re: Mailx
In order to send different file types, you will need to change the "application/msexcel" to whatever matches your attachment.
Unfortunately, I do not have a list of the attachment types, but if you search the forums for "elm", you will see a number of threads on this topic.
I've copied a response from Rita Workman which hopefully explains the structure a little better .....
August 09, 2000 20:04 PM GMT [ unassigned ]
--------------------------------------------------------------------------------
I've seen similar requests for this on other messages...and I have sent this before. So I'm sending it again to you...Yes- you can send a file as a TRUE file attachment and actually preserve what the file is...here is the info:
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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:34 AM
05-02-2001 09:34 AM
Re: Mailx
I hope you don't mind me quoting one of your responses, but I thought it would help Cathy,
Regs,
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:38 AM
05-02-2001 09:38 AM
Re: Mailx
Thank you everyone!
Points have been awarded.
Cathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:40 AM
05-02-2001 09:40 AM
Re: Mailx
I'm flattered !!
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:41 AM
05-02-2001 09:41 AM
Re: Mailx
1.There is a simple utility like elm called as mpack (this is the simplest ), check the following site : http://www3.primushost.com/~kylet/unix-att.html
2. Introduce the following line in the .profile of the user sending the mailx x and you will get it as an attachment of notepad .
export LANG=es_ES.iso88591
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:52 AM
05-02-2001 09:52 AM
Re: Mailx
I did " mailx -s "xyz" cathy.breslow@safeway.com
Did I miss something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 10:07 AM
05-02-2001 10:07 AM
Re: Mailx
export LC_CTYPE=es_ES.iso88591
export LC_COLLATE=C
export LC_MONETARY=en_US.iso88591
export LC_NUMERIC=en_US.iso88591
export LC_TIME=en_US.iso88591
export LC_MESSAGES=en_US.iso88591
Manoj
I am also attaching the .profile of the user which I go to me as an attachment .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2001 03:17 AM
05-03-2001 03:17 AM
Re: Mailx
I do it this way:
uuencode /path/file /path/file | mailx -m -s "Subject is blabla" name@company.com
/path/file is needed twice by uuencode,
-m does the trick for the mime-Type
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2001 06:10 AM
05-03-2001 06:10 AM
Re: Mailx
Thank you for your response!
1) Why does uuencode need
/path/file twice?
2) What's mime?
TIA,
Cathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2001 06:27 AM
05-03-2001 06:27 AM
Re: Mailx
MIME = Multipurpose Internet Mail Extension.
See this thread for more info:
http://www.nacs.uci.edu/indiv/ehood/MIME/MIME.html
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2001 06:31 AM
05-03-2001 06:31 AM
Re: Mailx
Thanks much!
cb