Coldfusion send email with attachment file


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



Have you just witnessed how easy it is to send attachment email in coldfusion. In PHP it will be code of atleast 50 lines, you can explore my blog for finding PHP equallent. Bookmark this page and blog to check back.
Now enjoy.

Posted in |