Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail a file automatically once it has been created

Status
Not open for further replies.

ruxshin

Programmer
Apr 26, 2001
33
FI
Hi,

I'm using cfschedule to schedule a task, and then publish the output to a file. This has been done.

I want to mail the output file as attachment automatically once the file has been created. How do I do it?

ruxshin
 
Just use the cfmail tag in the scheduled element.
ex: cfschedule has run, <cfinclude template=&quot;_emailmyreport.cfm&quot;>

The included file:

<cfmail to=&quot;grover.fields@famu.edu&quot; from&quot;support@yourdomain.com&quot; subject=&quot;New Report&quot; mimeattach=&quot;#filethatwascreated#&quot;>

</cfmail>

==CFPROGRAMMER
 
Hi,

I'm sorry, I don't quite understand these:
Just use the cfmail tag in the scheduled element.
ex: cfschedule has run, <cfinclude template=&quot;_emailmyreport.cfm&quot;>

Can you please explain further? Where to put the tag?

Thank you.

ruxshin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top