Answers.Body: <p>Sounds like you could achieve what you want by using Views to click through to a prefilled webform, with some Conditionals so you could set the 'body' of the email based on various 'templates' (aka markup fields in webform), then provided you include the contact.id and checksum options from the civicrm tab on the webform you can fire out a checksum just as you would with civicrm.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-18T04:52:07.587Z
Answers.LastActivityDate: 2017-03-18T04:52:07.587Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Does it have to be through CiviCRM? It sounds like you just want a customizable contact form, which can be done on the drupal side - have you looked at potential drupal modules?</p>
  
  <p>If the reason for CiviCRM is that you want a copy stored in their activity list, you could set up the module to bcc to an email address, and configure the civi email processor to retrieve them.</p>
  
  <p>Or if you're up for customizing then a similar suggestion to Jaap's would be customizing the email template to make the same javascript call that the dropdown does, but do it on page load if the url contains your parameter. Depends if you feel more comfortable with front-end or back-end type of customization.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-21T07:22:41.713Z
Answers.Text: Thanks for the suggestion. We want to send a checksum token link and record the activity into CiviCRM and wanted to eliminate the possibility that they choose the wrong template.
Answers.UserDisplayName: Heather O.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-14T12:29:27.557Z
Answers.Text: That sounds like a job for https://drupal.org/project/webform_civicrm
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-20T23:09:14.933Z
Answers.LastActivityDate: 2016-06-20T23:09:14.933Z
Answers.UserDisplayName: Demerit
Body: <p>We have a unique situation where we've built a Drupal View of CiviCRM contacts and want to provide a link to send an email through CiviCRM. </p>
  
  <p>This can easily be done by using: www.mysite.org.uk/civicrm/activity/email/add?action=add&amp;reset=1&amp;cid=[id]&amp;selectedChild=activity&amp;atype=3</p>
  
  <p>which will open a CiviCRM email activity with the person. So far, so good.</p>
  
  <p>However, we also want to force a specific template to be used at that point. To prevent errors in selection. Is that possible to include in the URL?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-20T11:03:40.670Z
Comments.Text: You could develop an extension which implements hook_civicrm_buildForm (https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm) to set the default value of the message template id based on the value in the url.
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Tags: <email><message-templates>
Title: Pass message template id through URL?
ThreadText: # Pass message template id through URL?
  
  (Asked by: username_0 on 2016-06-20)
  
  We have a unique situation where we've built a Drupal View of CiviCRM contacts and want to provide a link to send an email through CiviCRM.
  
  This can easily be done by using: www.mysite.org.uk/civicrm/activity/email/add?action=add&reset=1&cid=[id]&selectedChild=activity&atype=3
  
  which will open a CiviCRM email activity with the person. So far, so good.
  
  However, we also want to force a specific template to be used at that point. To prevent errors in selection. Is that possible to include in the URL?
  
  **Tags:** email, message-templates
  
  > **Comments:**
  > **username_1**: You could develop an extension which implements hook_civicrm_buildForm (https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm) to set the default value of the message template id based on the value in the url.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-03-18. Score: 1
  
  Sounds like you could achieve what you want by using Views to click through to a prefilled webform, with some Conditionals so you could set the 'body' of the email based on various 'templates' (aka markup fields in webform), then provided you include the contact.id and checksum options from the civicrm tab on the webform you can fire out a checksum just as you would with civicrm.
  
  
  ---
  
  ### Answer by username_3 on 2016-06-20. Score: 1
  
  Does it have to be through CiviCRM? It sounds like you just want a customizable contact form, which can be done on the drupal side - have you looked at potential drupal modules?
  
  If the reason for CiviCRM is that you want a copy stored in their activity list, you could set up the module to bcc to an email address, and configure the civi email processor to retrieve them.
  
  Or if you're up for customizing then a similar suggestion to username_1's would be customizing the email template to make the same javascript call that the dropdown does, but do it on page load if the url contains your parameter. Depends if you feel more comfortable with front-end or back-end type of customization.
  
  > **Comments:**
  > **username_0**: Thanks for the suggestion. We want to send a checksum token link and record the activity into CiviCRM and wanted to eliminate the possibility that they choose the wrong template.  
  > **username_4**: That sounds like a job for https://drupal.org/project/webform_civicrm  
  
  ---
  
  