The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-11-2002
Perderabo's Avatar
Perderabo Perderabo is offline
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,718
Do you know which OS and email software these people are using? I'm not sure that I exactly understand the complaint here. When I use the script to send myself an email message to my Outlook account, yes the attachments are below the body. If Outlook didn't put it somewhere, I'm sure how I would deal with it...

Are you saying that that mailer is opening the attachment and displaying it?

Well whatever the problem is here, I do have something that you can try. When I wrote that script I send myself emails from various mail programs to see what they did. I saw two techniques in use. I went with the simpler one because I saw that it worked. To try the more complex technique, after the line that says:
Code:
print -  'Content-Type: TEXT/PLAIN; charset=US-ASCII; name='${ATTACHMENT}
add this line...
print -  'Content-Disposition: attachment;   filename='${ATTACHMENT}
Let me know if this works better for you. I'm in the midst of writing a successor to mimetool and I'll add that line to it if it helps with some software.
Reply With Quote