I'm using CiviCRM 5.18.4 on WordPress 5.4.1. I have been successfully using CiviRules to send a welcome email when a contact adds a (pending) membership.
Now, I have created a rule that is supposed to send a different ("Membership Confirmation") email when we confirm the person's eligibility and donation:
Linked Trigger: Membership is changed
Linked Condition(s): Membership Status is one of "New"
Linked Action(s):
Send e-mail from [our email address] using primary e-mailaddress with Template "Membership Confirmation" to the contact and bcc to [internal staff] Delay by 5 minutes
Have tried it with or without delay, and with various (simplified) email templates. Result is consistent: When we approve the donation, it successfully changes the membership status to NEW, and the Event IS TRIGGERED for that contact. However, the emails do not get sent, and the emails do not appear in the "activities" list for that contact (although the donation and membership activities do). No error is reported, and nothing at all appears in the CiviRules Log.
[Note: I just installed the CiviRules Logger extension, I haven't seen any logs appearing even on events that trigger and work properly, so I don't really know if the logger is working.]
Any ideas? Could something be wrong with the email format? Is it the way I have written the rule? Is something going wrong on the back end?
Thanks for any thoughts!
UPDATE: I did finally get an error in the Civirules log:
2020-05-12 18:00 error Rule: 'Membership Confirmation Email' with id 6 failed for contact 595 because of Failed to execute delayed action
Array
( [rule_title] => Membership Confirmation Email [original_error] => Civirules api action exception: id is not a valid integer. API call: Email.send with params: from_name="[org name]", from_email="[our email]", template_id="74", location_type_id="", alternative_receiver_address="", cc="", bcc="[internal staff email]", file_on_case="", contact_id="595", extra_data="Array"
[reason] => Failed to execute delayed action
)
Can anyone interpret that for me? Which id is not a valid integer?