CF Email Hey
I am sending an email that gathers email from a form and i want the output to line up in the email. currently when the email is received, it looks like this:
GE_NAME: Charlie XXXX
GE_CLASS_YEAR: 2002
i would like for the whole email to look like this:
GE_NAME:_________Charlie XXXX
GE_CLASS_YEAR:____2002
(that should be lined up)
here is the current code for the email.cfm: (*i took out the < before each line)
---
CFSET VARIABLES.NumFields = ListLen(FORM.FIELDNAMES)>
CFSET VARIABLES.FieldArray = ListToArray(FORM.FieldNames)>
CFSET VARIABLES.EmailContent = "">
CFLOOP index="count" from="1" to="#VARIABLES.NumFields#">
CFIF VARIABLES.FieldArray[count] NEQ "SUBMIT" AND VARIABLES.FieldArray[count] NEQ "EmailFrom" AND VARIABLES.FieldArray[count] NEQ "EmailTo">
CFSET VARIABLES.CurrField = "FORM."& VARIABLES.FieldArray[count]>
CFSET VARIABLES.EmailContent = VARIABLES.EmailContent & Chr(13) & VARIABLES.FieldArray[count] & ":" & Evaluate(VARIABLES.CurrField)>
/CFIF>
/CFLOOP>"
is there a way to make it like the way stated above?
Thanks |