TwistPHP Documentation

connect

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

connectOpen a new FTP connection

Parameters

Name Type Description
$strHoststringn/a
[$intPort = 25]integern/a

Return Values

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

Example

<?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);