- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- attachments with sendmail
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
тАО04-24-2003 12:28 AM
тАО04-24-2003 12:28 AM
Does anyone Know how to send file attachments using sendmail. The only way I've managed so far is the following:
#cat
Thanks in advance,
Trystan.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 12:52 AM
тАО04-24-2003 12:52 AM
Re: attachments with sendmail
Read somewhere
TXTFILE=/tmp/textfile
MAILTO=user@remote.com
SUBJECT=attachmentmail
echo "From: $LOGNAME\nTo: $MAILTO\nSubject: $SUBJECT\nMime-Version: 1.0\nContent-Type: text/plain\n" > /tmp/file
cat $TXTFILE >> /tmp/file
/usr/lib/sendmail -t -oi < /tmp/file
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 01:15 AM
тАО04-24-2003 01:15 AM
Re: attachments with sendmail
I've put this into a script however this sends the file as the body of the e-mail and not as an attachment.
Thanks,
Trystan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 01:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 03:05 AM
тАО04-24-2003 03:05 AM
Re: attachments with sendmail
http://home.clara.net/dwotton/unix/mail_files.txt
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 11:14 PM
тАО04-24-2003 11:14 PM
Re: attachments with sendmail
/usr/sbin/sendmail -f$FROMMAIL $TOMAIL << ENDOFFILES
Subject: Data Files
`/usr/bin/uuencode $CFGFILEPATH/$CFGFILE1.txt $CFGFILE1.txt`
`/usr/bin/uuencode $CFGFILEPATH/$CFGFILE2.txt $CFGFILE2.txt`
`/usr/bin/uuencode $CFGFILEPATH/$CFGFILE3.txt $CFGFILE3.txt`
ENDOFFILES
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 11:41 PM
тАО04-24-2003 11:41 PM
Re: attachments with sendmail
Thanks for the responses, this is now working.
Thanks,
Trystan.