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
$blStatus true;

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

Method List

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