Trigger Webform mail pragmatically based on sid


Warning message

We recommend you to assign at least one category to this snippet so you could easily navigate it in the future. Edit your snippet here.

Get raw version
  1. $node_data = node_load(6597);
  2. $sid = 28172;
  3. include_once drupal_get_path('module','webform') . '/includes/';
  4. $submission = webform_get_submission($node_data->nid, $sid);
  5. webform_submission_send_mail($node_data, $submission, $emails = NULL);