Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Is it possible to create multiple contact forms each submitting to a different emailaddress?
It looks like you can only define one emailaddress in the config.php 'K_EMAIL_TO' and 'K_EMAIL_FROM'
but I'm not sure about that.

Can this somehow be done?
yes, no problems - it operates with any type of case.

you can create / generate anything. heres my case study of contact forms.

Code: Select all
<cms:send_mail from=frm_email to='appoint@gmail.com' subject='Appoint'><h1>Appoint - <cms:show frm_name /><h1>

<b>From:</b> <cms:show frm_name />
<b>E-Mail:</b> <cms:show frm_email />
<b>Phone:</b> <cms:show frm_number />
<b>Time:</b> <cms:show frm_appointtime />
<b>Note:</b> Please be advised about this important thing.

<b>Extra:</b> <cms:show frm_message />
</cms:send_mail>


Couch is by no way limiting your options, rather expanding them. These variables you mentioned, are just pre-defined, to help you understand. It doesn't restrict you from defining new ones.

As you can see in my example, when someone inputs their e-mail - I receive it as it was sent from his personal e-mail, so I could be able to sort that out through my e-mail client.

Email-to - can be defined there, or altered to any strings, or even combinations, based on form data - for example, if people sent "Ticket" to "Support Department" - you can easily write {if} statement - allowing it to get to support@yoursite.com, instead of sales@yoursite.com;

Hope that helps.
That helps a lot. Thank you for taking the time to come up with a workable solution.
3 posts Page 1 of 1