Webform email component created programmatically
$email = array(
  'nid' =&gt; $node-&gt;nid,
  'email' =&gt; 'name@example.ch',
  'subject' =&gt; 'default',
  'from_name' =&gt; 'default',
  'from_address' =&gt; 'default',
  'template' =&gt; 'default',
  'excluded_components' =&gt; array(),
);
webform_email_insert($email);


Check this post for more info.