Coldfusion send email with attachment files


Sending attachment emails are also as easy as sending the text email messages. Just addition you have to do to normal Coldfusion email is that you have to specify the path of file to be attached and you are done. So following is the code to send attachment Email in coldfusion


from="sendersaddress@anysite.com"
subject="my first email with attachment"
type="text"
mimeattach="subfolder/folder/mypdf.pdf"> (path of file, which is to be attached)

hi,
This is me sending you attached file.

Bye,
sender

Posted in |