Answers.Body: <p>Can you try after applying patch from <a href="https://lab.civicrm.org/extensions/emailapi/-/merge_requests/10" rel="nofollow noreferrer">here</a> may or may not be related!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-04T16:16:56.707Z
Answers.LastActivityDate: 2020-05-04T16:16:56.707Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have a set of civirules in places, when a contact is tagged it should send a welcome email. But I am keep receiving the following error message in log and welcome email is not sent. It happens for new &amp; existing contacts. Anyone has a clue what is it? How to fix it please? Thanks.</p>
  
  <p>Log in Drupal:</p>
  
  <pre><code>Civirules api action exception: Mandatory key(s) missing from params array: source_contact_id. API call: Email.send with params: from_name="Email from", from_email="abc@example.com", template_id="108", location_type_id="1", alternative_receiver_address="test@me.com", cc="", bcc="", file_on_case="", contact_id="8949", extra_data="Array"
  </code></pre>
  
  <p>Log in Civirules Logger:</p>
  
  <pre><code>    Array
  (
      [line] =&gt; 77
      [file] =&gt; /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/org.civicoop.civirules-master/CRM/CivirulesActions/Generic/Api.php
      [exception_message] =&gt; Civirules api action exception: Error sending e-mail to Katie Lost  . API call: Email.send with params: from_name="from name", from_email="abc@example.com", template_id="108", location_type_id="", alternative_receiver_address="", cc="", bcc="", file_on_case="", contact_id="9688", extra_data="Array"
      [rule_title] =&gt; Welcome Emails Workflow
      [original_error] =&gt; Error on {file} (Line {line})
  
  {exception_message}
      [reason] =&gt; Failed to execute rule
  )
  </code></pre>
  
  <p><a href="https://i.sstatic.net/4Ww4y.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4Ww4y.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-05-04T13:35:04.137Z
Comments.Text: Hi. I tried this and works on my test sites. Can you usually send anything from the 'from' email address you are using for the rule?
Comments.UserDisplayName: RebeccaTregenna
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-05-04T15:45:54.857Z
Comments.Text: Seems it’s an issue with msgtemplateblocker extension
Comments.UserDisplayName: Tapash
Tags: <email><civirules><message-templates><tags>
Title: "Failed to execute rule" - Civirules error, How to solve?
ThreadText: # "Failed to execute rule" - Civirules error, How to solve?
  
  (Asked by: username_0 on 2020-05-03)
  
  I have a set of civirules in places, when a contact is tagged it should send a welcome email. But I am keep receiving the following error message in log and welcome email is not sent. It happens for new & existing contacts. Anyone has a clue what is it? How to fix it please? Thanks.
  Log in Drupal:
  Civirules api action exception: Mandatory key(s) missing from params array: source_contact_id. API call: Email.send with params: from_name="Email from", from_email="abc@example.com", template_id="108", location_type_id="1", alternative_receiver_address="test@me.com", cc="", bcc="", file_on_case="", contact_id="8949", extra_data="Array"
  
  Log in Civirules Logger:
      Array
  (
      [line] => 77
      [file] => /home/webadmin/public_html/cmm/sites/default/files/civicrm/ext/org.civicoop.civirules-master/CRM/CivirulesActions/Generic/Api.php
      [exception_message] => Civirules api action exception: Error sending e-mail to Katie Lost  . API call: Email.send with params: from_name="from name", from_email="abc@example.com", template_id="108", location_type_id="", alternative_receiver_address="", cc="", bcc="", file_on_case="", contact_id="9688", extra_data="Array"
      [rule_title] => Welcome Emails Workflow
      [original_error] => Error on {file} (Line {line})
  
  {exception_message}
      [reason] => Failed to execute rule
  )
  
  **Tags:** email, civirules, message-templates, tags
  
  > **Comments:**
  > **username_1**: Hi. I tried this and works on my test sites. Can you usually send anything from the 'from' email address you are using for the rule?  
  > **username_0**: Seems it’s an issue with msgtemplateblocker extension  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-05-04. Score: 1 | Accepted answer
  
  Can you try after applying patch from [here](https://lab.civicrm.org/extensions/emailapi/-/merge_requests/10) may or may not be related!
  
  
  ---
  
  