I am trying to build a form where the IP address of the user is sent as part of a hidden field. I can do it with $_SERVER['REMOTE_ADDR'] but i want to keep all my code in couch. Is there an equivalent?
In addition, I would like to know if i can send 2 different emails in k_success instance:
In addition, I would like to know if i can send 2 different emails in k_success instance:
- Code: Select all
<cms:if k_success >
MESSAGE TO WEBSITE OWNER
=======================
<cms:send_mail from=frm_email to='sales@website.com' subject='Quotation Request'>
Quotation Request
=============
<cms:show k_success />
</cms:send_mail>
MESSAGE TO CUSTOMER
=======================
<cms:send_mail from=sales@website.com to=frm_email subject='Thank you for your quotation Request'>
Message to CUSTOMER
</cms:send_mail>
</cms:if>