Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Send email with HTML output?

$
0
0

I have A CFM FILE(testing3.cfm):

 

<cfset month = #URL.Month#><cfset year = #URL.Year#><CFQUERY>
SELECT .....code..</CFQUERY><HTML><table><thead><tr ><th>Month</th><th>Employee First Name</th><th>Employee Last Name</th><th>Stars<br/></th><cfoutput query=""><tr ><TD></TD></tr></cfoutput></table>


--- more code, pretty much the same
</HTML>

I can see this 'report' when i click on the link depending on the year or month.(testing2.cfm) file

report.PNG

 

This file gets data from a table from every month,

which works good.

I want to be able to send a email of these results to who ever I choose to send it to.

For example not the same people everytime , I would choose who I put in the 'TO' email part.

So maybe there would be a button/link that would open up the email message (outlook) and i

be able to see what is on  the html and be able to send it to the people I would like.

Doing my research I have seen I can use 'cfemail' but this doesnt seem like it would be able

to do what I want, only be able to do attachments.I would like to see the report i will send

before I send it out( from the above code i can click on it).

I be thinking maybe I can add a button/link next the the month in 'testing2.cfm', but im not sure if

that would be the best way to do it.

What would be the best way I can approch this? Any tips or articles I can read would help.


Viewing all articles
Browse latest Browse all 5794

Trending Articles