Sending e-mail using a pre-configured profile in tools API
if({api_type} == 'smtp' ){
$var_config = array(
'profile' => 'yahoo_example',
'message' => [
'html' => {email_body},
'text' => '',
'to' => $arr_merge,
'subject' => {subject}
]
);
}
sc_send_mail_api($var_config);