TwistPHP Documentation

Create

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

Type: Model

Create — Generate and send full multi-lingual multi-part HTML emails with the ability to add attachments. Fully customisable with Char encoding, message encoding, priority and sensitivity.

Example Usage

<?php
//Set the variables for the example
$strEncoding '7bit';

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

Method List

Method Access Returns
__constructconstructvoid
resetprotectedvoid
setEncodingpublicvoid
setCharEncodingpublicvoid
addTopublicvoid
addCcpublicvoid
addBccpublicvoid
setFrompublicvoid
setReplyTopublicvoid
setSubjectpublicvoid
setBodyPlainpublicvoid
setBodyHTMLpublicvoid
setPrioritypublicvoid
setSensitivitypublicvoid
disableSenderCheckingpublicvoid
setCustomSenderpublicvoid
setViewInBrowserpublicvoid
addAttachmentpublicvoid
senderValidationpublicvoid
datapublicvoid
sourcepublicvoid
sendpublicvoid
generatePlainMessageprotectedvoid
sanitisePlainMessageprotectedvoid
stripTagsprotectedvoid
generateHTMLMessageprotectedvoid
convertEncodingHeaderprotectedvoid
convertEncodingBodyprotectedvoid
buildBodyprotectedvoid
encodeMultipartMessageprotectedvoid
attachmentHeadersprotectedvoid