- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sending attachment using 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
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
08-29-2006 05:30 PM
08-29-2006 05:30 PM
We are running sendmail email server. I want to send attachment in the email.
Can someone please let me know how to do that ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 05:44 PM
08-29-2006 05:44 PM
Re: sending attachment using sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 05:59 PM
08-29-2006 05:59 PM
Re: sending attachment using sendmail
You can use
uuencode filename | mailx -m -s "subject" email_address
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 07:08 PM
08-29-2006 07:08 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2006 07:54 PM
08-29-2006 07:54 PM
Re: sending attachment using sendmail
You can use uuencode or elm.
see this post
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=262607
sajeer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 01:37 AM
08-30-2006 01:37 AM
Re: sending attachment using sendmail
I know this doesn't answer your question, but there is a Network Security Vulnerability with sendmail 8.12.9. The Vulnerability is "Buffer overflow". Just a heads up.
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 01:41 AM
08-30-2006 01:41 AM
Re: sending attachment using sendmail
Check out
http://www.olearycomputers.com/ll/mcsg/mcsg_mkpkg.html
for instructions on using sendmail to send mime attachments.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 01:46 AM
08-30-2006 01:46 AM
Re: sending attachment using sendmail
In the USA this week.
http://www.hpux.ws/mailfile2
Full featured, production and easy to understand and modify.
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
08-30-2006 01:56 AM
08-30-2006 01:56 AM
Re: sending attachment using sendmail
Although thats a nice service guard writeup ;p
Not being a mail guru I would think you can just specify everything to sendmail with a heredoc.
cat << eof
to
from
subject
mime-version
content-type
body
content-disposition: attachment; filename=stuff
eof | sendmail -t
That is most likely missing some stuff. But if you get the structure correct that should be able to do it. Much easier with uuencode though.
If your just sending a text file and dont need it to be an attachment. (not what your asking I realize)
# echo "To: you@yourdomain.com\nSubject: your subject\nContent-Type: text/html\
n\n"`cat /path/to/somefile.html` | sendmail -t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 02:38 AM
08-30-2006 02:38 AM
Re: sending attachment using sendmail
sorry all:
http://www.olearycomputers.com/ll/mail_attach.html
Try that link...
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2006 04:30 AM
08-30-2006 04:30 AM
Re: sending attachment using sendmail
I use an old simple method...the 'include' file. It's free-it's easy-it works well in scripts and from command line. All things I like...
Yep just a simple file that looks like this:
[include /path/file text/plain base64]
Now this little file can be modified to send most anything from text to pdf. Another example for MS Word doc:
[include /path/file application/msword base64]
To mail this file sitting on the HPUX box I just enter:
elm -s "Here's the file" anybody@anywhere.com < /path/include.file
Got this from an old document: NALKBRC0001803" Information on mailing attachments using unix mailers. Date 3/25/2000
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2006 07:34 PM
11-04-2006 07:34 PM
Re: sending attachment using sendmail
Mail messages with attachments should be mime configured if the receiving User Agent is mime compatible.
If not use uuencode (preferred shar)...
To send a binary file (nvtd) to a remote user.
shar (uses uuencode)
shar -cmos nvtd | sendmail -v
uuencode (Most useragent programs know uuencode)
With sendmail:
uuencode nvtd nvtd | sendmail -v
Groupwise knows uudecoded protocol.
Do the following to mail file "db":
uuencode db db | sendmail -v user@host
The following message should appear: smtp message delivered...
Send an attachment to me ;-) with lot of points asusual..
regds,
Vinod