Hello,
I configured an AfterInsertEvent so that it can send an email, but when I run it I get error.
$message = ‘Buen día,
Se acaba de registrar el alta COVID del colaborador’.{Nomina}.’ ‘.{Nombre}.‘el día’.{Fecha}.’ en la unidad '.{Unidad}.‘
Valida reincorporación:’.{Valido_Reincorporacion}‘
Saludos,’;
$mail_smtp_server = ‘’;
$mail_smtp_user = ‘’;
$mail_smtp_pass = ‘’;
$mail_from = ‘’;
$mail_to = ‘’;
$mail_subject = ‘Nueva acción registrada’;
$mail_message = $message;
$mail_format = ‘’;
$mail_copies = ‘’
$mail_tp_copies = ‘’;
$mail_port = ‘’;
$mail_tp_connection = ‘’;
sc_mail_send($mail_smtp_server,$mail_smtp_user,$mail_smtp_pass,$mail_from,$mail_to,$mail_subject,$mail_message,$mail_format,$mail_copies,$mail_tp_copies,$mail_port,$mail_tp_connection);