I'm trying to send an email using a script, but it seems I have a small issue. I want to send the email with the following information: for the 'from' field, I want to retrieve the full name of the sender from 'createdByName' and their email address from 'createdBy.emailAddress'
PHP Code:
$from = list(createdByName, createdBy.emailAddress);
$id = record\create(
'Email',
'from', $from,
'to', contact.emailAddress,
'subject', issue.name,
'body', rponses,
'isHtml', true,
'attachmentsIds', $attachmentsIds,
'status', 'Sending'
);
ext\email\send($id);
Comment