Announcement

Collapse
No announcement yet.

Help with a formula script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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(createdByNamecreatedBy.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);​ 

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

    Comment

    Working...
    X