Is there a recommended way to create contact forms that can save data in cmsBuilder and send an email with the entry data to a specified email address? A plugin or at least some example code would be great!
It seems that the Form Generator won't send the Admin an email when a new submission is made. Is this likely to be possible in future versions of the plugin?
Perhaps a form could send a template email from the system or somehow integrate with the Newsletter plugin to send HTML templates with placeholders.
We'll probably add that in future but don't have a timeline for it now.
In the meantime what you can do is use the PHP mail function directly: http://php.net/manual/en/function.mail.php
Of if you want to use CMSB functions you can do the following:
- Add a new Email Template under: CMS Setup > Email Templates
- Go to: CMS Setup > Email Templates > Advanced Commands (bottom left) > Developers: Export Templates As PHP
That will generate the code to send a message with CMSB. Note that this is getting into custom programming so we don't provide a lot of support on it. But hopefully that's helpful!