Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi guys.
I'm trying to create a couch form, that will allow me to send an email to multiple users, I'm not sure how to go about this.
I have something like this:
<cms:send_mail from=k_email_from to='email@email.com, <cms:show frm_email />' subject='A subject'>
</cms:send_mail>

What I am trying to achieve is, when the user enters his email into the form on the page, a email is sent to both email@email.com, and the user's email adress. However the code I have up there doesn't work. Please help..
Hi,

Please use "double quotes" (https://docs.couchcms.com/concepts/sett ... eters.html) while setting the 'to' parameter and your code should work -
Code: Select all
<cms:send_mail from=k_email_from to="email@email.com, <cms:show frm_email />" subject='A subject'>

You may also want to set the 'reply_to' parameter to the visitor's email as this will help while replying back (the mail client will use it to pre-populate the receiving email) -
Code: Select all
<cms:send_mail from=k_email_from to="email@email.com, <cms:show frm_email />" reply_to=frm_email subject='A subject'>

Hope this helps.
2 posts Page 1 of 1
cron