Hi,
I am using SugarCRM with the following params:
$data = array(
"name" => 'Test From SugarCRM Production Environment',
"to_addrs_names" => $userEmail,
"from_addr_name" => '$senderEmail',
"from_name" => 'Test Email',
"description" => 'Test From SugarCRM Production Environment Description',
"description_html" => 'Test From SugarCRM Production Environment Description',
"type" => "outbound", // 'out' means outgoing email
"status" => "sent" // Set the status to 'sent'
);
$create_email_url = 'devdnf.sugarondemand.com/.../Emails';
It allows you to enter data in the sugar, but the email is not sending automatically.
Also, I got this error when I used the outbound email ID.
$data = array( "name" => 'Test From SugarCRM Production Environment', "to_addrs_names" => $userEmail, "from_addr_name" => '$senderEmail', "from_name" => 'Test Name', "description" => 'Test From SugarCRM Production Environment Description', "description_html" => 'Test From SugarCRM Production Environment Description', "type" => "out", "outbound_email_id"=> "1216f224-cab9-11ea-9b0b-022cc35525d8", // 'out' means outgoing email "status" => "ready" // Set the status to 'ready' );
Array ( [error] => not_authorized [error_message] => Not allowed to edit field outbound_email_id in module: Emails.)
Help me out to send an email when data is entered in the SugarCRM.