Custom form that will change the hyperlink inside the email for a chosen radiobutton I would like to alter the content of an email sent to the user after someone choice form radio button list. The altered content of the email would be a hyperlink to a particular version of a software. How do I do it within the submit button with Drupal 7 ? Thanks
To send an email with Drupal, you should first use hook_mail to define the email and then drupal_mail to send it with any variables. There is extensive docs on this on the Drupal API site.