- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mail with German special characters and attachment...
Operating System - HP-UX
1753280
Members
5676
Online
108792
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
03-28-2003 06:38 AM
03-28-2003 06:38 AM
mail with German special characters and attachments
I have found this message group very helpful with a batch mailing solution I am developing. I am 98% there and need some advice on the remaining items. The requirements: pdf and text file attachments, variable from addresses, German special characters in both the subject and the body.
Started off with ELM, found attachments (with the [include ...] syntax worked fine. Problem with specifying the return addresses dynamically.
Switched to mailx e.g. syntax:
(cat body_file; uuencode pdf_file) | mailx -m -s "\"$l_subject\"" -r $l_returnaddress $l_emailaddress
Attachments sent OK to most mail systems. Problem with German characters. Setting charset=ISO-8859-1 worked with German in the subject but not with German in the body.
I finally tried coding the MIME command directly and sending it to sendmail e.g.
{
echo To: $EMAIL_TO
echo Subject: $EMAIL_SUBJECT
echo 'MIME-Version: 1.0'
echo 'Content-type: Multipart/Mixed ; charset=ISO-8859-1; boundary="xxxxyyyzzqzzyyyxxxx"'
echo '--xxxxyyyzzqzzyyyxxxx'
echo ''
cat $EMAIL_BODY
echo '--xxxxyyyzzqzzyyyxxxx'
echo 'Content-type: application/octet-stream'
echo 'Content-Transfer-Encoding: base64'
echo 'Content-Disposition: attachment; filename="'$FILE_NAME'"'
echo ''
cat $ATTACHED_FILE
echo '--xxxxyyyzzqzzyyyxxxx--'
} | /usr/sbin/sendmail -f $EMAIL_FROM $EMAIL_TO
This gave me a problem with pdf's coming through corrupted.
So... can anybody provide advice for any of the above problems. My preference would probably be the MIME solution as from what I have read it is a more reliable protocol than uuencode.
Started off with ELM, found attachments (with the [include ...] syntax worked fine. Problem with specifying the return addresses dynamically.
Switched to mailx e.g. syntax:
(cat body_file; uuencode pdf_file) | mailx -m -s "\"$l_subject\"" -r $l_returnaddress $l_emailaddress
Attachments sent OK to most mail systems. Problem with German characters. Setting charset=ISO-8859-1 worked with German in the subject but not with German in the body.
I finally tried coding the MIME command directly and sending it to sendmail e.g.
{
echo To: $EMAIL_TO
echo Subject: $EMAIL_SUBJECT
echo 'MIME-Version: 1.0'
echo 'Content-type: Multipart/Mixed ; charset=ISO-8859-1; boundary="xxxxyyyzzqzzyyyxxxx"'
echo '--xxxxyyyzzqzzyyyxxxx'
echo ''
cat $EMAIL_BODY
echo '--xxxxyyyzzqzzyyyxxxx'
echo 'Content-type: application/octet-stream'
echo 'Content-Transfer-Encoding: base64'
echo 'Content-Disposition: attachment; filename="'$FILE_NAME'"'
echo ''
cat $ATTACHED_FILE
echo '--xxxxyyyzzqzzyyyxxxx--'
} | /usr/sbin/sendmail -f $EMAIL_FROM $EMAIL_TO
This gave me a problem with pdf's coming through corrupted.
So... can anybody provide advice for any of the above problems. My preference would probably be the MIME solution as from what I have read it is a more reliable protocol than uuencode.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2003 06:43 AM
03-28-2003 06:43 AM
Re: mail with German special characters and attachments
Sorry to say, I haven't a clue, Paul, but I thought I should say howdy!
Your long lost brother,
Pete
Pete
Your long lost brother,
Pete
Pete
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