Email to field value (Dynamic To) does not work with mambot

Wicher 09 Sep, 2008
Hello...

First of all I want to thank the Chronoengine developers for this awsome great extension! I really love it!

And I discovered that using the email to field value (in the special fields tab) does not seem to work in combination with the {chronocontact}form name[/chronocontact} mambot plugin.

If I use the link to the form directly from the Forms Manager menu and I fill it in it does work. It sends the email to the field value of my radio group or dropdown list. But as mentioned above if I fill in the form using the {chronocontact} tags in an article it doesn't send the email to the field value I have entered in the special fields email field field.

I hope this is understandble. If not I am happy to put up some screenshots.

I really hope this is a configuration mistake on my side, but as it does work properly via the manage forms menu and does not with the chronocontact tags I am affraid that this is a bug :-(

Best regards,
Wicher Koetsier
Wicher 09 Sep, 2008
To be honest I don't exactly remember.. I think I first had the latest BETA version, and as it didn't work I tried the latest stable version CHRONOFORMS V2.5 J1.5 RC3.1.ZIP

But again I am not sure anymore. Is there a way to check which version I have atm?

If I would want to update what is the best way. Ooh no wait, I am sure I can find the answer somewhere in the FAQ so forget about this sentence 😛
Max_admin 09 Sep, 2008
Hi wicher,

please get the latest V3.0 Beta 2, its in the downloads area, to check ur installed version, go to install/uninstall at joomla admin and to components tab and check the ChronoContact version!

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Wicher 10 Sep, 2008
Ok here I am again to report :-)

I uninstalled my current Chronoforms installation and mambot plugin. Then I downloaded and installed the latest version of the component and installed the mambot plugin that you provided in the link. Unfortunatly it still doesn't work :-(

I don't understand why....

First I did just the "Dynamic to" and not a normal "to" but then it gave a message that the mailprogram could not be started (something like that). Then I also added a valid "to" email adress, and it doesn't work either.. I just don't receive it on the email adress that is in the field value..

And again if I go directly via the chronoforms link (that shows in the forms manager) and fill in the form, it works perfectly. So in my eyes really a compatibility issue somehow of {chronocontact}form name{/chronocontact} and the "dynamic to"

Best regards,
Wicher Koetsier
Max_admin 10 Sep, 2008
Hi Wicher,

please search the forums for "$registry1", a post by "Serta", there is a bug found, try to fix it and see what happens!

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Wicher 10 Sep, 2008
Thanks for your super quick answers! Thats just great!

I think we are now mixing two different problems..

Problem 1:
- The message "Mailfunction could not start" appears after submitting the form.
This just happens to me if I only use a "Dynamic To" in the email settings setup. If I add a "To" as well there is no problem. It is just a bit confusing, because it does show the green color border making you believe that the setup with only a "Dynamic To" is fine, which apperently is not as it creates the message "Mailfunction could not start"

Problem 2:
- Submitting the form doesn't send the email to the "Dynamic To" field value (email adress) when {chronocontact}Form name{/chronocontact} is used.
It does however work perfectly fine when using the link that is shown in the "Forms manager". In other words it works fine when I don't use the form via the article where the form is shown with the use of the mambot plugin tags.

I did the change "$registry" to "$registry1" in the chonocontact.php file as suggested in the topic you provided, this does however not solve problem 1 nor problem 2.

I hope this helps.

For extra understandability I took some screenshots to visualize what I am talking about.

Screenshots related to problem 1:
Email to field value (Dynamic To) does not work with mambot image 1
Email to field value (Dynamic To) does not work with mambot image 2
Email to field value (Dynamic To) does not work with mambot image 3

Screenshots related to problem 2:
Email to field value (Dynamic To) does not work with mambot image 4
The red text in the below screenshot is not very clear, so here what it says: And when I use the form in the article it will not send the email to the field value of the field I entered in the "Dynamic To"
Email to field value (Dynamic To) does not work with mambot image 5
Max_admin 10 Sep, 2008
Hi Wicher,

I think the same code hack must be added to the plugins/content/chronocontact.php too, can you do it and let me know ? its so strange that the mambot will change how the email is working, the mambot only shows teh form, it doesnt do any more.

also please make sure that the emails tested are always different, from, to, dynamic to!

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Wicher 11 Sep, 2008
Hello Max,

Here I am again to report back. Unfortunatly without good news :-(

So I did what you asked, I also modified the chronocontact.php located in plugins/content/

I changed 3 times $registry to $registry1 in the below part starting on line 32 in plugins/content/chronocontact.php

$imver = '';
	$query = "SELECT * FROM #__chrono_contact WHERE name='".$formname."'";
	$database->setQuery( $query );
	$rows = $database->loadObjectList();
	$registry1 = new JRegistry();
	$registry1->loadINI( $rows[0]->paramsall );
	$paramsvalues = $registry1->toObject( );
	if(trim($paramsvalues->imagever) == 'Yes'){
		$imver = '<input name="chrono_verification" type="text" style="vertical-align:top" id="chrono_verification" value="">
			  <img src="'.JURI::Base()
			.'components/com_chronocontact/chrono_verification.php?imtype='.$paramsvalues->imtype.'">';
	}
	$htmlstring = $rows[0]->html;


I understand this issue is very strange... and I am not kidding, the dynamic to works fine if I use direct link to the form, and doesn't when shown in an article with the use of the mambot plugin.

I hope there is a solution :-(

And I am not sure if I completely understand what you say here

also please make sure that the emails tested are always different, from, to, dynamic to!


The form I made works like this.
It is a contact form where people need to choose about what (4 options) they want to get in contact. These options are about invoicing, for support, business and for information. These 4 options have as field value the respective email adress, so that the message they type in the form is sent to the correct email adress. So I don't know how to do what you say above? "make sure that the emails tested are always different, from, to, dynamic to!" As the email is send to the "Dynamic to" field value..

Anyway thanks for your efforts!

Greetings,
Wicher
Max_admin 11 Sep, 2008
Hi Wicher,

Ok, please revert back the changes in the plugin file.

try to make the emails used in this process different, for example don't make the from email the same as any other email used, are you doing this ? let me know!

2nd one, regarding issue #1, try to split them on 2 emails, so design an email with only TO and another one with only Dynamic To and see if this works ?

regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Wicher 13 Sep, 2008
Hi again,

Ok so I have put back the original chronocontact.php file in the plugin/content folder, and then I did as you suggested I mad another email setup with just a "Dynamic to" field. This unfortunatly gives me again the "Mailfunction could not start" message. It seems that there is no email setup possible with just a "Dynamic to", it has to contain a normal "To" in order work.

Here the setup I made (which gave me the message).

Extra information --> The field value of waarvoorcontact are 4 different email adresses that are not used for anything else in the email setup.
Email to field value (Dynamic To) does not work with mambot image 6
Max_admin 13 Sep, 2008
lets try to make the fromname : "Admin" and the from email "admin@admin.com", without quotes, works ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Wicher 15 Sep, 2008
Ok did it, and no result :-(

I guess you are going to get out of ideas soon? :-(
Max_admin 15 Sep, 2008
Hi Wicher,

lets wait for the V3.0 stable release which will come with another mambot too, it will be out in a day or 2 hopefully.

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Wicher 16 Sep, 2008
Ok great!
Wicher 25 Sep, 2008
Ok good news. With the latest 3.0 Stable version it works fine!!

Thanks again for all the effort and this great component!
Max_admin 25 Sep, 2008
great to know it did!🙂
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.