Two mailforms?
Two mailforms?
Hi
Is it possible to have a mailform link on each page BUT have the email go to a different email account for each page?
My head says its probably not possible without recoding but its worth asking the question
b
Is it possible to have a mailform link on each page BUT have the email go to a different email account for each page?
My head says its probably not possible without recoding but its worth asking the question
b
Re: Two mailforms?
Hi b,
should be possible with this plugin:
http://cmsimpleplugins.jakobsfeld.dk/?F ... r_%28XH%29
Holger
should be possible with this plugin:
http://cmsimpleplugins.jakobsfeld.dk/?F ... r_%28XH%29
Holger
Re: Two mailforms?
Thanks Holger
I'll have a look
b
I'll have a look
b
Re: Two mailforms?
Hi B,
I think there's an easier way:
when you use my pd_scripting plugin, you can change the config-setting for the mailadress on each page.
This way you may use the original mailform.
I've not tested - but I think it should work.
Holger
I think there's an easier way:
when you use my pd_scripting plugin, you can change the config-setting for the mailadress on each page.
This way you may use the original mailform.
I've not tested - but I think it should work.
Holger
Re: Two mailforms?
Hi Holger
That seems like a better idea. The formmailer-xh is a bit complicated to understand!
I have had a play with $tx['mailform']['email']="myemail.com"; in pd-scripting
but cant get it to work.
If i dont put an address in the cms/config i dont get the mailform page appear.
If i put an email in the config file i only get the email to that address.
Have I got the syntax correct?
B
That seems like a better idea. The formmailer-xh is a bit complicated to understand!
I have had a play with $tx['mailform']['email']="myemail.com"; in pd-scripting
but cant get it to work.
If i dont put an address in the cms/config i dont get the mailform page appear.
If i put an email in the config file i only get the email to that address.
Have I got the syntax correct?
B
Re: Two mailforms?
Have you a hint on how to get this to work Holger?
b
b
Re: Two mailforms?
Not tested (time lack), but should probably work, try it:
1. Leave $cf['mailform']['email'] in config.php empty.
2. Use on desired pages hi_pg_scripting withand
(you nustu allow more scripts on one page in hi_pd_scripting-config)
1. Leave $cf['mailform']['email'] in config.php empty.
2. Use on desired pages hi_pg_scripting with
Code: Select all
$cf['mailform']['email']="some@email.com";
Code: Select all
mailform();
(you nustu allow more scripts on one page in hi_pd_scripting-config)
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Two mailforms?
Thanks Tata but sorry but that doesnt work.
b
All I get is a blank page on pages where that code is in Holgers pluginTata wrote: 1. Leave $cf['mailform']['email'] in config.php empty.
2. Use on desired pages hi_pg_scripting withandCode: Select all
$cf['mailform']['email']="some@email.com";
Code: Select all
mailform();
(you nustu allow more scripts on one page in hi_pd_scripting-config)
b
Re: Two mailforms?
Try this on a page:
and the mail definition in hi_pd_scripting.
Code: Select all
<h2>e-mail form</h2>
<p>#CMSimple include $pth['file']['mailform']; $o = $output . $o; $output = '';#</p>
Code: Select all
$cf['mailform']['email']="some@email.com";
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Two mailforms?
Thanks Tata just spent a couple of hours on that but it doesnt work either!Tata wrote:Try this on a page:and the mail definition in hi_pd_scripting.Code: Select all
<h2>e-mail form</h2> <p>#CMSimple include $pth['file']['mailform']; $o = $output . $o; $output = '';#</p>
Code: Select all
$cf['mailform']['email']="some@email.com";
As soon as I remove the email address in config the email form wont appear.
B