- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create an mailx attachment from hp-ux to external ...
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
тАО05-13-2003 06:10 AM
тАО05-13-2003 06:10 AM
attachments to mailx to send an email
to and external email account based on
Novell Groupwise. I am familiar with
the procedure to use uuencode with
mailx, to create mailx with attachment,
however it does not natively
function with groupwise and the
uuencode added material is displayed as
content within Groupwise email rather
than as the attachment
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2003 06:13 AM
тАО05-13-2003 06:13 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
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. The Macintosh version can also
decode messages in split-BinHex format.
http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2003 06:22 AM
тАО05-13-2003 06:22 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
a procedure/utility that is natively
part of the HP-UX system and not add
additional software/programs.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2003 04:51 AM
тАО05-14-2003 04:51 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2003 06:45 AM
тАО05-14-2003 06:45 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
See the thread "Mailing html file from HPUX to outlook" <>, especially my responses.
While that thread talks about *HTML* *bodies*, it is also useful for other content types and for attachments, i.e. you only have to change the "Content-Type: ..." line.
In other threads you may/will find more elaborate scripts [1], but the basic idea is the same, i.e. use echo to construct the header lines and send the resulting header/body/attachment(s) with "sendmail -t".
[1] You may want to search the forum on "mailx sendmail attachment". I thought I had saved some pointers, but apparently I didn't. I *think* one of the respondents was Steven ... .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2003 07:57 AM
тАО05-14-2003 07:57 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2003 09:25 AM
тАО05-14-2003 09:25 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
I don't know if this will help or if you are already using this variation of this command, but this is what I use in a script to send a file attachment with mailx. I did quite a bit of tweaking on this to get it right when I was writing the script. I not only had problems with the attachments, but also with the network configuration. Anyways here is the command that I use.
uuencode $E_FILE $E_FILE | mailx -m -s "Subject" $EMAIL
Hope this helps.
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2003 12:21 PM
тАО05-14-2003 12:21 PM
SolutionWithin the body of your email add this:
------------------------------------
This is my text. How are you?
[include /tmp/myattach application/octet-stream base64]
This is some more text in the middle.
[include /tmp/myexcel.xls application/ms-excel base64]
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.
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.
If you are running from the command line, it is also necessary that you have a .elm directory
under the users 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
тАО05-15-2003 04:49 AM
тАО05-15-2003 04:49 AM
Re: create an mailx attachment from hp-ux to external Groupwise email
advice !!
I have several options to evaluate, test
and or install
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 01:13 PM
тАО05-15-2003 01:13 PM
Re: create an mailx attachment from hp-ux to external Groupwise email
What's wrong with using uuencode?
It works for me. Below is a procedure I came up with:
*******************************************************************************
E-mail attachments:
Assume that "test.txt" has the contents for the body of the mail, "test1"
has the contents for the first attachment and "test2" has the contents
for the second attachment)
CODE:
ux2dos text1 > text1.txt
ux2dos text2 > text2.txt
uuencode test1.txt test1.txt >> test.txt
uuencode test2.txt test2.txt >> test.txt
mailx -m -s "Test Subject" tpardike@????.??? < test.txt
This sends a mail with the subject and a body and 2 attachments.
"Test Subject" is sent as the SUBJECT of the mail.
test.txt is sent as the BODY of the mail.
test1.txt is sent as ATTACHMENT 1 in the mail.
test2.txt is sent as ATTACHMENT 2 in the mail.
********************************************************************************
If you have problems with this, I can post a script that sends LVM configuration changes to my GroupWise account as attachments.
Ted Pardike