Tweaking Form Block to send Email with user attributes?

Permalink 1 user found helpful
Hello community,

for a client project, I am trying to find a solution for a notification mailing function with a button.

I would like to display a button which, when clicked, sends an email containing some pre-defined text as well as the (registered users) attributes (first name, last name, username). Attributes are already there.

As I understand, this cannot be done with a mailto: link, as PHP could not be executed like that.

I thought that maybe the form block could be tweaked to do something like that. I imagine something like getting the user object, getting user attributes and hardcode that into like, a custom template or a modified version of the block.
This way, the user attributes would auto-populate the form input and the user would just need to submit it. Does this make sense or am I missing a much easier way to do it? thank you :)

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
Some of the advanced form addons can set up forms with hidden fields containing user attributes, that subsequently become part of the recorded form results and sent with submission emails.
Cahueya replied on at Permalink Reply
Hi John,

thanks a lot for the reminder, I also have a license for extended form left :)
RadiantWeb replied on at Permalink Reply
RadiantWeb
ProForms does this as well using [[question_hadnle]] syntax. You would add multiple hidden user attributes for info you want to utilize, and then in the subject or body of the Autoresponder Question Type you would use the bracket/handle to reference.

http://www.concrete5.org/marketplace/addons/proforms/...

ChadStrat