I want to use the additional Processing to send out a custom Email to the submitter of the form. (it is serving as a mini-webshop with just one product)
What I did so far looks like this:
mail($_form_values['email'] ,'Text for subject','Text for body');
I know I shouldn't use mail() but rather a drupal-internal mail function. But at least this works when I enter a valid email Address as the first variable. But the problem is: how do I call the value of the user's email field? (I created a field whose machine readable name is "email".)
$_form_values ['email'] does not work.
Also it would be nice to call other variables and pass them to my confirmation email. I read a lot of posts about similar subjects, but did not find a solution (am not pro PHP Programmer)
Comments
Comment #1
eigentor commentedIn Installed the 2.x version. This should help with the "conditional e-mail recipients" But I still have got to figure out how to access the data. As it would be nice to make a form saying: "Dear Mr $variable" You have ordered $number copies of our product. This is your confirmation... and so on.
Comment #2
quicksketchOnce you have the recipient receiving an e-mail (just create an e-mail component and then have it receive a conditional e-mail), follow the instructions in THEMING.txt to theme the sent out e-mail. You can check the $cid (Component ID) variable to see if the e-mail is being sent out to the value of the e-mail field and customize the e-mail sent when sending to that component.
Comment #3
eigentor commentedThanks for your help. The tutorial is well-written, this will get me going. I close this issue.