• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Form emailer and xml

New Here ,
Jul 23, 2008 Jul 23, 2008

Copy link to clipboard

Copied

I have a form set up and if a user inputs their first name I want the email sent to have their first name surrounded by XML. I have tried this but it doesn't work(the email gets sent with the xml stripped out):

<cfoutput>
<firstname> #form.firstName# </firstname>
</cfoutput>
TOPICS
Advanced techniques

Views

268

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2008 Jul 24, 2008

Copy link to clipboard

Copied

LATEST
First, you don't need the cfoutput tag, cfmail includes this.

Second, are you sending the mail as text or html? If you are sending as html change the angle brackets to &lt; and &gt;.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation