I have a program designed to parse the fields from my form into a custom form template in outlook. The email needs to come in like this:
<root>
<exportblock>
<regtype>TEACHER</regtype>
<firstname>{firstname}</firstname>
<name>{name}</name>
<phone>{phone}</phone>
<mobile>{mobile}</mobile>
<emphone>{emphone}</emphone>
<email>{email}</email>
<street>{street}</street>
<city>{city}</city>
<state>{state}</state>
<county>{county}</county>
<referred>{referred}</referred>
<availmonth>{availmonth}</availmonth>
<availyear>{availyear}</availyear>
<destination>{destination}</destination>
<nation>{nation}</nation>
<birthday>{birthday}</birthday>
<ppexpire>{ppexpire}</ppexpire>
<univcollege>{univcollege}</univcollege>
<qualification>{qualification}</qualification>
<discipline>{discipline}</discipline>
<certification>{check0}</certification>
<teachinexperience>{teachinexperience}</teachinexperience>
<otherexperience>{otherexperience}</otherexperience>
<otherlanguage>{otherlanguage}</otherlanguage>
<history>{history}</history>
<btnResume>{btnResume}</btnResume>
<btnCoverLetter>{btnCoverLetter}</btnCoverLetter>
<btnPic>{btnPic}</btnPic>
<btnPassport>{btnPassport}</btnPassport>
<btnDegree>{btnDegree}</btnDegree>
<btnLessonPlan{btnLessonPlan}</btnLessonPlan>
</exportblock>
</root>
Is there a way I can get the email that generates to me to come in this format? Right now, when I set up the Email Template it strips the <> out which then won\'t allow the program to administer it properly.
<root>
<exportblock>
<regtype>TEACHER</regtype>
<firstname>{firstname}</firstname>
<name>{name}</name>
<phone>{phone}</phone>
<mobile>{mobile}</mobile>
<emphone>{emphone}</emphone>
<email>{email}</email>
<street>{street}</street>
<city>{city}</city>
<state>{state}</state>
<county>{county}</county>
<referred>{referred}</referred>
<availmonth>{availmonth}</availmonth>
<availyear>{availyear}</availyear>
<destination>{destination}</destination>
<nation>{nation}</nation>
<birthday>{birthday}</birthday>
<ppexpire>{ppexpire}</ppexpire>
<univcollege>{univcollege}</univcollege>
<qualification>{qualification}</qualification>
<discipline>{discipline}</discipline>
<certification>{check0}</certification>
<teachinexperience>{teachinexperience}</teachinexperience>
<otherexperience>{otherexperience}</otherexperience>
<otherlanguage>{otherlanguage}</otherlanguage>
<history>{history}</history>
<btnResume>{btnResume}</btnResume>
<btnCoverLetter>{btnCoverLetter}</btnCoverLetter>
<btnPic>{btnPic}</btnPic>
<btnPassport>{btnPassport}</btnPassport>
<btnDegree>{btnDegree}</btnDegree>
<btnLessonPlan{btnLessonPlan}</btnLessonPlan>
</exportblock>
</root>
Is there a way I can get the email that generates to me to come in this format? Right now, when I set up the Email Template it strips the <> out which then won\'t allow the program to administer it properly.
Hi strak,
In the Email Setup properties turn off the HTML editor by setting "Use Template Editor" to NO.
Bob
In the Email Setup properties turn off the HTML editor by setting "Use Template Editor" to NO.
Bob
Thanks for trying to help out here.
I followed your instructions and turned off the Template Editor but the results that get mailed through are still stripping the <root><export>
The result is an email that comes to me without the <root><export> etc. All is produces is the results.
I am a pure novice at this so the solution could be glaringly simple... which is the incredibly frustrating part of this... anyone have any ideas?
I looked at the code from our current site that is spitting out the mail results I need for the program to work... here it is:
$mail_string="<root>\n";
$mail_string.="<exportblock>\n";
$mail_string.="<regtype>TEACHER</regtype>\n";
$mail_string.="<firstname>$firstname</firstname>\n";
$mail_string.="<name>$name</name>\n";
$mail_string.="<phone>$phone</phone>\n";
$mail_string.="<mobile>$mobile</mobile>\n";
$mail_string.="<emphone>$emphone</emphone>\n";
$mail_string.="<email>$email</email>\n";
$mail_string.="<referred>$referred</referred>\n";
$mail_string.="<street>$street</street>\n";
ETC ETC ETC
$mail_string.="</exportblock>\n\n";
$mail_string.="</root>\n\n";
I understand that each of the form variables needs to be communcated with {xyz}
THE RESULTING EMAIL COMES IS AS
$mail_string="\n";
$mail_string.="\n";
$mail_string.="TEACHER\n";
$mail_string.="$firstname\n";
$mail_string.="$name\n";
$mail_string.="$phone\n";
$mail_string.="$mobile\n";
$mail_string.="$emphone\n";
$mail_string.="$email\n";
$mail_string.="$referred\n";
THANK IN ADVANCE FOR HELPING ME OUT🙂
I followed your instructions and turned off the Template Editor but the results that get mailed through are still stripping the <root><export>
The result is an email that comes to me without the <root><export> etc. All is produces is the results.
I am a pure novice at this so the solution could be glaringly simple... which is the incredibly frustrating part of this... anyone have any ideas?
I looked at the code from our current site that is spitting out the mail results I need for the program to work... here it is:
$mail_string="<root>\n";
$mail_string.="<exportblock>\n";
$mail_string.="<regtype>TEACHER</regtype>\n";
$mail_string.="<firstname>$firstname</firstname>\n";
$mail_string.="<name>$name</name>\n";
$mail_string.="<phone>$phone</phone>\n";
$mail_string.="<mobile>$mobile</mobile>\n";
$mail_string.="<emphone>$emphone</emphone>\n";
$mail_string.="<email>$email</email>\n";
$mail_string.="<referred>$referred</referred>\n";
$mail_string.="<street>$street</street>\n";
ETC ETC ETC
$mail_string.="</exportblock>\n\n";
$mail_string.="</root>\n\n";
I understand that each of the form variables needs to be communcated with {xyz}
THE RESULTING EMAIL COMES IS AS
$mail_string="\n";
$mail_string.="\n";
$mail_string.="TEACHER\n";
$mail_string.="$firstname\n";
$mail_string.="$name\n";
$mail_string.="$phone\n";
$mail_string.="$mobile\n";
$mail_string.="$emphone\n";
$mail_string.="$email\n";
$mail_string.="$referred\n";
THANK IN ADVANCE FOR HELPING ME OUT🙂
Hi strak,
a) make sure that you are using Plain Text Emails (not HTML)
b) try using $mail_string="<root>\n";
Bob
a) make sure that you are using Plain Text Emails (not HTML)
b) try using $mail_string="<root>\n";
Bob
Hi there - I am super impressed with the follow up so far.
It is set to mail in plain text and I did try the html code version for <> with <: and >
Each time I input the <:root> etc etc etc in the Email Template and save it, all the <: change to < and so on.
I did try running the form to see if it would work before rechecking the Email Template but alas that didn't work either.
When I enter $mail_string=
The result form email response has the form fields in it but the text is:
TEACHER;
$mail_string.="testing\n";
$mail_string.="last name testing\n";
$mail_string.="\n";
$mail_string.="\n";
$mail_string.="\n";
$mail_string.="\n";
$mail_string.="internet\n";
etc
It is set to mail in plain text and I did try the html code version for <> with <: and >
Each time I input the <:root> etc etc etc in the Email Template and save it, all the <: change to < and so on.
I did try running the form to see if it would work before rechecking the Email Template but alas that didn't work either.
When I enter $mail_string=
The result form email response has the form fields in it but the text is:
TEACHER;
$mail_string.="testing\n";
$mail_string.="last name testing\n";
$mail_string.="\n";
$mail_string.="\n";
$mail_string.="\n";
$mail_string.="\n";
$mail_string.="internet\n";
etc
This topic is locked and no more replies can be posted.