TwistPHP Documentation

addTo

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

addToAdd the To address for the email, you can add as many To 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 addTo with the example vars
$resCreate = new \Twist\Core\Models\Email\Create();
$resCreate -> addTo($strEmailAddress$strName);