Contact form

5 posts by 2 authors in: Forums > CMS Builder
Last Post: September 19, 2017   (RSS)

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.

Thanks,

Greg

By Dave - September 18, 2017

Hi Greg, 

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!

Good luck!

Dave Edis - Senior Developer
interactivetools.com

Hi Dave,

Thanks for the reply.

The ability to define a "To" email address and a template email with the placeholders seems like a no-brainer to me. I look forward to seeing this at some point!

In the mean time, I will try the PHP code you suggest.

Thanks again,

Greg