\apex\app\msg\utilssmtp_connections

Handles various miscellaneous SMTP functions, such as obtaining the next rotating SMTP server connection in line.

Summary

Methods
Properties
Constants
get_smtp_server()
write()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
connect()
$server_num
$smtp_connections
N/A

Properties

$server_num

$server_num :

Type

$smtp_connections

$smtp_connections :

Type

Methods

get_smtp_server()

get_smtp_server()

Get the next SMTP server to send from

write()

write(mixed  $sock,string  $message): string

Write line to a SMTP connection, and return the next line given by the SMTP server.

Parameters

mixed $sock

The SMTP socket connection

string $message

The message to send to the SMTP server

Returns

string —

The one-line response from the SMTP server

connect()

connect(string  $host,integer  $port,string  $username,string  $password,integer  $is_ssl): mixed

Connect to a SMTP server.

Parameters

string $host

The SMTP host

integer $port

The SMTP port

string $username

The SMTP username

string $password

The SMTP password

integer $is_ssl

A 1/0 defining whether or not to use SSL connection

Returns

mixed —

The socket connection if successful, or false otherwise.