- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail with attachment script not working
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-10-2004 07:06 AM
тАО11-10-2004 07:06 AM
do
uuencode $x.info whatever | sendmail -fsomeuser@domain.com -t < /DR/headerfile
done
This is emailing just fine... only the attachment is not being attached... What is the problem?
Thanks!
Tonya Underwood
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 07:07 AM
тАО11-10-2004 07:07 AM
Re: sendmail with attachment script not working
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 08:42 AM
тАО11-10-2004 08:42 AM
Re: sendmail with attachment script not working
But, this should work:
uuencode
This thread may give you some ideas:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183409
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 09:34 AM
тАО11-10-2004 09:34 AM
Re: sendmail with attachment script not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 10:44 AM
тАО11-10-2004 10:44 AM
SolutionHere you go...
#!/usr/bin/sh
From="me@myplace.com"
To="whomever@wherever.com"
Subject="uuencode attach test"
(
cat <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 10:49 AM
тАО11-10-2004 10:49 AM
Re: sendmail with attachment script not working
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 10:54 AM
тАО11-10-2004 10:54 AM
Re: sendmail with attachment script not working
for e in `echo file1 file2 file3`
do
uuencode $e $e.txt
done | mailx -m -s "mymail" username@domain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 11:10 AM
тАО11-10-2004 11:10 AM
Re: sendmail with attachment script not working
#!/usr/bin/sh
From="john.kittel@kaisertwd.com"
To="john.kittel@doctor.kaisertwd.com"
Subject="uuencode attach test"
(
echo "Subject: $Subject"
echo "Mime-Version: 1.0"
echo "Content-Type: multipart/mixed; boundary=\"KACC.boundary.09112002\""
Base=`basename $1`
echo "--KACC.boundary.09112002"
echo "Content-Disposition: attachment; filename=\"$Base\""
echo "Content-Type: image; name=\"$Base\"; charset=US-ASCII"
echo "Content-Transfer-Encoding: uuencode"
echo ""
uuencode $1 $1.en
) | /usr/lib/sendmail -f$From $To
exit 0
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2004 11:25 AM
тАО11-10-2004 11:25 AM
Re: sendmail with attachment script not working
My production version. Does a bit more than you like.
Two possibilities here:
1) Compare my methodology to your own and correct your script.
2) Modify mine to meet your needs.
Note that certain symmantec gateways need to be patched to correctly process these type of scripts. Translation: It may be your smtp gateway and not your script.
SEP
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-15-2004 03:05 AM
тАО11-15-2004 03:05 AM