TwistPHP Documentation

addCc

File path: dist/twist/Core/Models/Email/Create.model.php
Namespace: Twist\Core\Models\Email
Extends:

addCcAdd the Cc (Carbon Copy) address for the email, you can add as many Cc fields as you need.
Optionally you can put the persons full name in the second parameter if you know it.

Parameters

Name Type Description
$strEmailAddressstringn/a
[$strName = '']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strEmailAddress 'foo';
$strName '';

//Call the function addCc with the example vars
$resCreate = new \Twist\Core\Models\Email\Create();
$resCreate -> addCc($strEmailAddress$strName);