TwistPHP Documentation

setFrom

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

setFromSet the From email address, this the is the address the email will be sent from.
Optionally you can set a name for the from address in the second parameter.

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 setFrom with the example vars
$resCreate = new \Twist\Core\Models\Email\Create();
$resCreate -> setFrom($strEmailAddress$strName);