Forums

Does email template work?

gare 10 Aug, 2008
Hi -
In general I really appreciate Chronoforms and all of its functionality.

I am trying to get Email Template to work, but am getting the following errors:

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'b' in /public_html/bluehorizonvc/components/com_chronocontact/chronocontact.php on line 354

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'n' in /bluehorizonvc/components/com_chronocontact/chronocontact.php on line 354

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'C' in /bluehorizonvc/components/com_chronocontact/chronocontact.php on line 354
E-mail: 'Yes' custom


Does the email template work? I have stripped my template down to just a few basic fields using the format {field_name}

Additional bug is that I do not think my cc email field works. Using ChronoForms V2.5 J1.5 RC3.1

Thank you for reply.
Max_admin 10 Aug, 2008
Hi gare,

can you post your email template code here ? and a screenshot for the general tab settings if possible ?

remove any data at your special fields tab please also!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gare 10 Aug, 2008
template:
<h2>Inquiry Form Part 2 Results</h2>
	
<table class="emailForm">

<tbody><tr>

<td colspan="2" class="headertext">Your Information</td></tr>
<tr><td class="frmleftcol">
			<label for="contact_name">
			Your name:</label></td><td>
			
			{name}
			<br>
</td></tr>
<tr><td class="frmleftcol">
			<label id="contact_emailmsg" for="email_address">

				 Email:
			</label>
</td><td>
			{email_address}

</td></tr>
<tr><td class="frmleftcol">
			<label>
				 Phone:
			</label>			
</td><td>
			{phone}

</td></tr>
<tr><td class="frmleftcol">
<label id="contact_citymsg" for="contact_city">
				 City:
			</label>
</td><td>
			{your_city}
</td></tr>			
<tr><td class="frmleftcol">
<label id="contact_statemsg" for="contact_email">
				 State:
			</label>
</td><td>
			<br>

			{your_state}
</td></tr>
<tr><td class="frmleftcol">
<label id="contact_country" for="contact_country">
				 Country:
			</label>
</td><td>
			{your_country}
</td></tr>
<tr><td class="frmleftcol">

			<label id="contact_emailmsg" for="contact_email">
How soon do you want to start your business plan?
			</label>		

</td><td>	
			{start_plan}
</td></tr>
<tr>
			<td class="label">Should we contact you by phone or e-mail?  If by phone, what are the best times/days?</td>

			<td>{contactprefs}</td>
		</tr>

</tbody></table>

[attachment=0]generalTab.png[/attachment]

and my Special Fields tab is empty.

Thank you for such prompt response!
-g
Max_admin 10 Aug, 2008
Hi, do you get an email sent at all ? please try to add different from and receiver email and remove the Replyto email and name completely!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gare 10 Aug, 2008
Hi -

Yes email sends. but empty.

Here is debug output:


_POST: Array ( [name] => garetest [email_address] => gare.calhoun@gmail.com [phone] => 1231 [your_city] => [your_state] => [your_country] => [start_plan] => Immediately [contactprefs] => [company] => [website] => www.googl.com [market] => [Business_Description] => Test [How_Much_Capital_Trying_To_Raise] => Uncertain [svc_Business_Plan] => on [svc_Business_Plan_Review] => on [svc_Business_Plan_Makeover] => on [svc_Detailed_Financial_Projection] => on [svc_Private_Placement_Memorandum] => on [svc_Market_Research_&_Analysis] => on [svc_Competitor_Research_&_Analysis] => on [svc_Marketing_Materials] => on [project] => Test test [timing] => [other] => Test [referral] => )
Case 2: Use template

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'b' in /home/todd/public_html/bluehorizonvc/components/com_chronocontact/chronocontact.php on line 354

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'n' in /home/todd/public_html/bluehorizonvc/components/com_chronocontact/chronocontact.php on line 354

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'C' in /home/todd/public_html/bluehorizonvc/components/com_chronocontact/chronocontact.php on line 354
E-mail: 'Yes' custom
Email sent
E-mail message

From: BHVC webmaster [webmaster@bluehorizonvc.com]
To: webmaster@bluehorizonvc.com
Subject: BHVC // Inquiry Part 2


Submitted by 97.115.233.162
GreyHead 10 Aug, 2008
Hi gare,

I've recreated your template in CF 2.5 on Joomla 1.5 and it appears to work OK.

[sendfb][/sendfb]

Bob
gare 10 Aug, 2008
Thank you for your prompt help. Given your replies, I think I need to take a harder look at the form itself, which had some irregular field names (spaces & odd characters). My attempt to debug the problem did not include cleaning up the form, only the email template (the simplified version is what I posted here).

Thank you again. I hope I did not waste to much of your time. Will let you know if this does not solve the problem. (ie, making simpler field names in the form..)
gare 10 Aug, 2008
Yes - I had html form field names with spaces and "/" in them & other irregular characters in the field names.

This was the source of my problems.


Thank you for your assistance!
Max_admin 11 Aug, 2008
good!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.