Help with a formula script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abidoss
    Senior Member
    • Mar 2023
    • 230

    Help with a formula script

    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);
  • abidoss
    Senior Member
    • Mar 2023
    • 230

    #2
    It's okay, I found it. It's mundane
    'fromName', createdByName,

    Comment

    Working...