Log in

View Full Version : file attachment for mail function



varshatest
01-04-2007, 11:44 AM
hi,
i want to upload file and attach to 8 receipents along wit sme data..
well my file upload is wrking..hw do i do the attachment for mail..
i have code which uploads file to specified dir..bt thn i need to take tht file path and attach to mail function..
hw do i do this?
regrds
varsha

ItsMeOnly
01-04-2007, 11:16 PM
Basically you'd need to format post as message/rfc822 with boundaries, and base64 uploaded files, insert MIME headers, maybe there's an optimized method, but that's what I'd do.