- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail - Attaching Files to emails
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
Forums
Discussions
Discussions
Discussions
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
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
02-28-2002 07:13 AM
02-28-2002 07:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:30 AM
02-28-2002 07:30 AM
Re: Sendmail - Attaching Files to emails
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:33 AM
02-28-2002 07:33 AM
Re: Sendmail - Attaching Files to emails
Try this:
# uuencode attachment.txt attachment.txt | elm -s "subject" user@domain
OR
Check this out:
http://us-support.external.hp.com/cki/bin/doc.pl/sid=9bc3f3d11de098249e/screen=ckiDisplayDocument?docId=200000048039408
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:40 AM
02-28-2002 07:40 AM
SolutionHere's a simple script using sendmail:
=======================================
#!/bin/ksh
if [ $# -ne 3 ] ; then
echo
echo Syntax error: $0 file subject recipient
echo
exit 1
fi
file=$1
subject=$2
recipient=$3
(echo "Subject: $2
Please find file $1 attached";
uuencode $file ${file}.txt) | /usr/lib/sendmail $recipient
=====================================
this sorts out the Subject, which sendmail expects to start "Subject: " followed by a blank line.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:43 AM
02-28-2002 07:43 AM
Re: Sendmail - Attaching Files to emails
for i in `echo filename1 filename2 filename3 ...`
do
uuencode $i $i.txt
done|mailx -m -s "test" username@whereever.com
Change ".txt" to the proper format, so if it's a pdf, and the original filename does snot end in .pdf, then change the above ".txt" to ".pdf".
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:52 AM
02-28-2002 07:52 AM
Re: Sendmail - Attaching Files to emails
* ux2dos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 08:01 AM
02-28-2002 08:01 AM
Re: Sendmail - Attaching Files to emails
Here's a thread with a couple more ways to send attachments:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 07:45 PM
02-28-2002 07:45 PM
Re: Sendmail - Attaching Files to emails
best and simple way to sebd ab attachment is using 'mpack'
mpack is available free on the net
easy to install and use
mpck -s"test" xyz@company.com file1 file2 ...