Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Copy ContactForm (Composite C1)

$
0
0
If you mean CC and BCC, the Contact Form doesn't do it.
But you can customize it to do so.

The form itself is rendered by an XSLT function Composite.Forms.ContactForm:

Here, you can see that it uses a C# function with parameters to send an email
<f:function name="Composite.Forms.ContactForm.Functions.Send">
...
</f:function>
It is available in /App_Code/Composite/FormsContactForm/Functions.cs

The C# function in turn uses the static SendMail method where it makes a message from the values in the input parameters.

I think, you can:
  1. extend this method with 1 more parameter, say, string cc
    and add its value to mailMessage.CC = cc;
  2. extend a public static method Send with similar parameter for 'CC'. This method calls "SendMail"
  3. Then in the XSLT function I mentioned above, you should also add another parameter - for CC. And also pass its value to the Composite.Forms.ContactForm.Functions.Send. Something like:
<f:function name="Composite.Forms.ContactForm.Functions.Send">
...
<f:param name="toCCEmail" value="{$toCCEmail}" />
...
</f:function>

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>