HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sending mail as an attachment
Operating System - HP-UX
1833329
Members
2847
Online
110051
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
Forums
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
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
12-27-2002 12:45 PM
12-27-2002 12:45 PM
Sending mail as an attachment
How do I send file as an attachment using the mail command...
should there any patch installed for the same
should there any patch installed for the same
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 12:55 PM
12-27-2002 12:55 PM
Re: Sending mail as an attachment
Here is fairly simple method for sending one or multiple files.
for e in `echo file1 file2 file3`
do
uuencode $e $e.txt
done|mailx -m -s "mymail" username@domain.com
Change ".txt" to the proper format of the file e.g. .xls for excel, .doc for word etc
You can use mailx, sendmail, just change the command. Have a look at the various man pages for additional help.
sending for example text file as attachment and that it can be opened by Windows do the
following:
ux2dos YourDocument|uuencode YourDocument.txt|mailx -m -s "Here is your text document" email@domain.com
for e in `echo file1 file2 file3`
do
uuencode $e $e.txt
done|mailx -m -s "mymail" username@domain.com
Change ".txt" to the proper format of the file e.g. .xls for excel, .doc for word etc
You can use mailx, sendmail, just change the command. Have a look at the various man pages for additional help.
sending for example text file as attachment and that it can be opened by Windows do the
following:
ux2dos YourDocument|uuencode YourDocument.txt|mailx -m -s "Here is your text document" email@domain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 12:59 PM
12-27-2002 12:59 PM
Re: Sending mail as an attachment
Thanks..i realised that I could uuencode and it worked fine..anyways points assigned for the reply posted..
No points will be assigned here after.
No points will be assigned here after.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP