[thelist] Re: E-mail attachments in ASP

Warden, Matt mwarden at mattwarden.com
Mon Mar 25 22:07:01 CST 2002


On Mar 25, Jason Lustig had something to say about [thelist] Re: E-mail...

>>http://www.serverobjects.com/comp/Aspmail3.htm
>[...]
>>Basically, save the file in a temp location
>>on the server and using the AddAttachment
>>method, attache the file to your target
>>email message.
>
>Good in theory, bad in practice when your sysadmin won't set up a COM object
>to handle file uploading for you. :(

You don't need a component. You can read the binary data directly from teh
Request stream, but it's rather involved. There are articles out there on
the subject if you're interested.

>I see how to add an attachment; is it possible to attach the file without
>touching the diskspace? i.e. instead of upload the file and then attach it,
>why not just skip the disk step entirely and put it from the memory of the
>server right into the email?

yes, combine the technique i mentioned above with scott dexter's
(sgd) articles on www.evolt.org (i believe it was scott, forgive me if it
was someone else)

hth,

--
mattwarden
mattwarden.com




More information about the thelist mailing list