- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- sendmail: why do I get plain Text instead of a fil...
Operating System - Linux
1824874
Members
3792
Online
109674
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
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
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
тАО11-19-2003 03:07 AM
тАО11-19-2003 03:07 AM
Hi you all
here is the sendmail part of my script. I am usin RH Linux 8 and sendig to Lotus-Notes. Instead of getting an attached File I get plain Text with the Mail:
{
echo To: $EMAIL_TO
echo From: $EMAIL_FROM
echo CC: $EMAIL_CC
echo Subject: $EMAIL_SUBJECT
uuencode -m "$ip_out/$x" "$ip_out/$y"
} | /usr/sbin/sendmail "$EMAIL_ALL"
and here is the first part of the result (it should be the file A_..... .xls):
begin-base64 644 /opt/aa40/ip_out/A_09B67FEF55B9EF4941256DE300533DE6.xls
PGFhPgp6aXh8MTUwNjR8Q049U3RlZmFuIFppbW1lcm1hbm4vT1U9QkUvT1U9
VGVsZW1hdGljL089QUVZL0M9Q0h8MDAwMjEyMDYzMXwxNC4xMS4yMDAzfDA5
QjY3RkVGNTVCOUVGNDk0MTI1NkRFMzAwNTMzREU2DXx8MTg4fDIxMDF8Cjxh
Many Thanks
Juerg
here is the sendmail part of my script. I am usin RH Linux 8 and sendig to Lotus-Notes. Instead of getting an attached File I get plain Text with the Mail:
{
echo To: $EMAIL_TO
echo From: $EMAIL_FROM
echo CC: $EMAIL_CC
echo Subject: $EMAIL_SUBJECT
uuencode -m "$ip_out/$x" "$ip_out/$y"
} | /usr/sbin/sendmail "$EMAIL_ALL"
and here is the first part of the result (it should be the file A_..... .xls):
begin-base64 644 /opt/aa40/ip_out/A_09B67FEF55B9EF4941256DE300533DE6.xls
PGFhPgp6aXh8MTUwNjR8Q049U3RlZmFuIFppbW1lcm1hbm4vT1U9QkUvT1U9
VGVsZW1hdGljL089QUVZL0M9Q0h8MDAwMjEyMDYzMXwxNC4xMS4yMDAzfDA5
QjY3RkVGNTVCOUVGNDk0MTI1NkRFMzAwNTMzREU2DXx8MTg4fDIxMDF8Cjxh
Many Thanks
Juerg
The personal liberty goes so far as it does not affect the liberty of others
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:54 AM
тАО11-19-2003 03:54 AM
Solution
I'm attaching a production script that properly does attachments.
I never had any success with uuencode.
The attachment is called mailfile. I'm doing an upgrade next week to allow it to take multiple workd subjects.
SEP
I never had any success with uuencode.
The attachment is called mailfile. I'm doing an upgrade next week to allow it to take multiple workd subjects.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 04:11 AM
тАО11-19-2003 04:11 AM
Re: sendmail: why do I get plain Text instead of a file?
I did the re-write. Subject is any argument after and including argument 5.
5 Arguments required.
If you decide to point, one or the other please. I'm close to a goal and I want everything to be earned.
I should have done the re-write prior to my first post.
5 Arguments required.
If you decide to point, one or the other please. I'm close to a goal and I want everything to be earned.
I should have done the re-write prior to my first post.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 04:33 AM
тАО11-19-2003 04:33 AM
Re: sendmail: why do I get plain Text instead of a file?
try with elm
echo "[include name_of_file application/octet_stream base64]">>$MAIL_N
AME
elm -s "MAIL_SUBJECT" MAIL_TO <$MAIL_NAME
echo "[include name_of_file application/octet_stream base64]">>$MAIL_N
AME
elm -s "MAIL_SUBJECT" MAIL_TO <$MAIL_NAME
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP