TwistPHP Documentation

ProtocolSMTP

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

Type: Model

ProtocolSMTP

Example Usage

<?php
//Set the variables for the example
$strHost 'foo';
$intPort 25;

//Call the function connect with the example vars
$resProtocolSMTP = new \Twist\Core\Models\Email\ProtocolSMTP();
$resProtocolSMTP -> connect($strHost$intPort);

Method List

Method Access Returns
setTimeoutpublicvoid
getLastMessagepublicvoid
connectpublicvoid
connectedpublicvoid
disconnectpublicvoid
loginpublicvoid
useFromParampublicvoid
frompublicvoid
topublicvoid
subjectpublicvoid
bodypublicvoid
sendpublicvoid
communicateprotectedvoid