Email plugin use


I’m using email plugin in my design. Contact form has two fields. Email body and email address so I know who to reply to. Using the new validator I can make sure both are populated, but email plugin only allows one field to be sent. Do I need to concatenate the two fields into one that can be provided to the email plugin, or is there some other way?


I wrote my own script for this purpose. Works for me, maybe there is a better way.

var emailText=this.props.appActions.dataSlots[‘ds_emailText’];
var emailAddress=this.props.appActions.dataSlots[‘ds_emailAddress’];
var message=emailText+"\n"+emailAddress;
this.props.appActions.updateDataSlot(“ds_emailToSend”, message);

Then I use ds_emailToSend in my email plugin.


Your script looks like a legit solution for this matter. Good job!