Skip to main content
Participant
Jan 6, 2009 5:09 PM UTC
Question

Emailing Content of CFML page

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Jan 9, 2009 6:00 AM UTC
Hi Patrick,

You may also try the "CFFormMail" available here,

http://cfformmail.riaforge.org/

HTH
Translate
Participating Frequently
Jan 8, 2009 11:16 PM UTC
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.
Translate
Inspiring
Jan 6, 2009 5:17 PM UTC
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.

Translate