- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Send mails with attachments
Operating System - HP-UX
1752781
Members
5983
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-23-2002 05:46 AM
05-23-2002 05:46 AM
Re: Send mails with attachments
Hi Yogee,
I had been using this:
(
echo "Subject: Text in the subject line"
echo "Text in email body"
uuencode
) | /usr/sbin/sendmail recipient@comp.com
This works fine. You can add needed extension to to open it with appropriate appl in windows.
Andrej
I had been using this:
(
echo "Subject: Text in the subject line"
echo "Text in email body"
uuencode
) | /usr/sbin/sendmail recipient@comp.com
This works fine. You can add needed extension to
Andrej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2002 03:09 AM
05-25-2002 03:09 AM
Re: Send mails with attachments
Thank you everybody for you replies.
I have temporarily done the following modifications to my scripts:
===============================================
...
if ($5 == '') then
mail $1 < $3
else
if (`ls $5|cut -f 2 -d"."` == 'txt') then
echo "`cat $3` \n[include $5 text/plain base64]"|elm -s "$2" $1
else if (`ls $5|cut -f 2 -d"."` == 'pdf') then
echo "`cat $3` \n[include $5 application/pdf base64]"|elm -s "$2" $1
else if (`ls $5|cut -f 2 -d"."` == 'htm') then
echo "`cat $3` \n[include $5 text/html base64]"|elm -s "$2" $1
else
mail $1 < $5
endif
endif
# Delete the message file.
if ($4 == 'delete') then
rm $3
endif
# Delete the attach file.
if ($6 == 'delete') then
rm $5
endif
...
===============================================
Hope that i have not missed out anything.
Best regards
yogeeraj
I have temporarily done the following modifications to my scripts:
===============================================
...
if ($5 == '') then
mail $1 < $3
else
if (`ls $5|cut -f 2 -d"."` == 'txt') then
echo "`cat $3` \n[include $5 text/plain base64]"|elm -s "$2" $1
else if (`ls $5|cut -f 2 -d"."` == 'pdf') then
echo "`cat $3` \n[include $5 application/pdf base64]"|elm -s "$2" $1
else if (`ls $5|cut -f 2 -d"."` == 'htm') then
echo "`cat $3` \n[include $5 text/html base64]"|elm -s "$2" $1
else
mail $1 < $5
endif
endif
# Delete the message file.
if ($4 == 'delete') then
rm $3
endif
# Delete the attach file.
if ($6 == 'delete') then
rm $5
endif
...
===============================================
Hope that i have not missed out anything.
Best regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP