File uploaded - how to attach and send using sendmail

File uploaded - how to attach and send using sendmail

Hi,

My form has these fields

Document: [upload file]
Contact Email: XXX@domain.com

When a new record is added, i want the document/file uploaded to be sent to the contact email.

i tried to add it into the message using "input.Document". But when i received the email, input.Document just prints the name of the document into the message body.

There is no email attachment.

Anyone with any idea! This is pretty important to the application i want to build... anyone with any ideas?