Case Creation Email not Sending

Hi,

I create case by code and contact by code and relate contact and case like this :


	$ocontact = BeanFactory::getBean("Contacts", $contact_id);
	$ocontact->load_relationship('cases');
	$ocontact->cases->add($case_id);
         
        // Doing something here for send "Case Creation" Email Template ?        

All is perfectly created in SuiteCRM.
But, a have AOP active, for normal inbound mail, the AOP create Case, and Send “Case Creation” Template to Contact.

In my Case and Contact create by code, “Case Creation” Email is not send !!
But I can bypass by user interaction : remove relation contact case … and then relate again and the mail is send.

Who can help me for “fire” this hook for send “Case Creation” Email Template ?

Regards.

Resolved by https://github.com/salesagility/SuiteCRM/pull/2042

:wink:

Cool. Maybe you can add your experience on that Github Issue, it might help get it merged… Thanks