cfmail is script is easy but as the docs are still a bit lacking and there is no mention of the attributes for using mail in script I had a look in the CF9 install directory and in
/opt/ColdFusion9/CustomTags/com/adobe/coldfusion
You will find the cfc's Adobe made to extend script support. I opened up the mail.cfc and worked out how to use the function. Here is a small example.
Of course to, from, subject etc can be strings they don't have to be variables.
4 comments: