TwistPHP Documentation

setBodyHTML

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

setBodyHTMLSet the HTML body of the email, you can have a plain text only email if required. Full HTML and CSS support, bear in mind that
different mail clients will display HTML in different ways. Testing is key here.

Parameters

Name Type Description
$strBodystringn/a

Return Values

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

Example

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

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