Formula: how to send email to multiple emails (to) and (cc)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    Formula: how to send email to multiple emails (to) and (cc)

    If you ever want to send an email to multiple emails. e.g send email to manager1@test.com and manager2@test.com but also copy directors director1@test.com and director2@test.com then you can you use a ; character as a delimiter. see below code

    PHP Code:
        $emailId = record\create(
            'Email',
            'to', 'manager1@test.com;manager2@test.com',
            'cc', 'director1@test.com;director2@test.com',
            'status', 'Sending',
        );
    
        ext\email\send($emailId);

    Cheers
    Rabii
    Web Dev
Working...