HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail Attached File Problem
Operating System - HP-UX
1833793
Members
2565
Online
110063
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
Go to solution
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
04-06-2001 06:17 AM
04-06-2001 06:17 AM
I have some scripts that are set up to send me their output via e-mail everyday.
Example: /usr/local/bin/daily.sh | mailx -s "Daily Stats" root
Everything works fine except for the fact that it sends me the output as an attachment. Not in the body of the e-mail as I would like and I get this message when I recieve the mail:
This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message. If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set.
Is there a setting in sendmail that I have to change? Or is something on the exchange server that this mail goes to? Any help would be appreciated. Many thanks in advance.
Rob Smith
Example: /usr/local/bin/daily.sh | mailx -s "Daily Stats" root
Everything works fine except for the fact that it sends me the output as an attachment. Not in the body of the e-mail as I would like and I get this message when I recieve the mail:
This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message. If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set.
Is there a setting in sendmail that I have to change? Or is something on the exchange server that this mail goes to? Any help would be appreciated. Many thanks in advance.
Rob Smith
Learn the rules so you can break them properly.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 06:38 AM
04-06-2001 06:38 AM
Solution
Maybe I could suggest something slightly different than just sending output to a mail statement.
usr/local/bin/daily.sh | mailx -s "Daily Stats" root
#./usr/local/bin/daily.sh > daily_out.txt | mailx -s "subject" root < daily_out.txt
I just tried this....created a dummy script to run ls and out to this output file ..it sent me the file in the body of the message../ Then I changed the script to just run ls (no output to file in this script) and mail it...it mailed it in the body of the message.
Just a thought,
/rcw
usr/local/bin/daily.sh | mailx -s "Daily Stats" root
#./usr/local/bin/daily.sh > daily_out.txt | mailx -s "subject" root < daily_out.txt
I just tried this....created a dummy script to run ls and out to this output file ..it sent me the file in the body of the message../ Then I changed the script to just run ls (no output to file in this script) and mail it...it mailed it in the body of the message.
Just a thought,
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 07:00 AM
04-06-2001 07:00 AM
Re: Sendmail Attached File Problem
Here is what I do:
(
echo "To: whoever@wherever.com
Subject: WHATEVER YOU WANT YOUR SUBJECT TO BE "`date +%D`"
Contents:
"
) > Message.txt
cat ERROR_TEXT >> Message.txt
sendmail -t < Message.txt
(
echo "To: whoever@wherever.com
Subject: WHATEVER YOU WANT YOUR SUBJECT TO BE "`date +%D`"
Contents:
"
) > Message.txt
cat ERROR_TEXT >> Message.txt
sendmail -t < Message.txt
No Indian prince has to his palace ...
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