Skip to main content
Participant
January 6, 2009
Question

Emailing Content of CFML page

  • January 6, 2009
  • 3 replies
  • 448 views
HI,

I have created a form using cfml with input fields to capture individuals information and would like to email them as one complete list in the email body.

I knnow the mailto function, and how to pass data from page to page but need help formatting the data so it can be sent as an email.

Thanks,
Patrick
This topic has been closed for replies.

3 replies

Inspiring
January 9, 2009
Hi Patrick,

You may also try the "CFFormMail" available here,

http://cfformmail.riaforge.org/

HTH
Participating Frequently
January 8, 2009
A pretty complete example can be found here:

http://www.fordwebs.com/cfform.cfm

Which also includes client-side and server-side validation. The only thing not included is anti-spambot code, which you may want to think about implementing as well if your form starts getting hit by them.
Inspiring
January 6, 2009
Ok, read the documentation on the <cfmail...> tag.


<cfmail
to="email@to.com"
from="email@from.org"
subject="This is as hard as it gets">
I would just like to let you know that I am responding to #form.name#
about the #form.widget# you would like delivered to #form.address#.
</cfmail>

There are some details about how to configure ColdFusion to talk to a
mail server, but I'll leave to the documentation if it is required.