How can I convert the selected options from a select multiple field into an email?

<select name="fields[publications][]" multiple="multiple">
     <xsl:for-each select="//publications-all/entry">
         <option value="{@id}">
           <xsl:value-of select="title"/>

I tried to do something like this:

<input name="send-email[body]" value="fields[name,address,phone,publications]" type="hidden" />

The email gets delivered but the values are empty.

How can this be done?

This is advanced functionality already. I strongly suggest using Email Template Manager to send emails.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details