EmailGateway SMTPGateway

public class SMTPGateway extends EmailGateway

email.smtp.php #17

One of the two core email gateways. Provides simple SMTP functionalities. Supports AUTH LOGIN, SSL and TLS.

Methods

void __construct()

Constructor. Sets basic default values based on preferences.

array about()

Returns the name, used in the dropdown menu in the preferences pane.

XMLElement getPreferencesPane()

Builds the preferences pane, shown in the symphony backend.

bool send()

Send an email using an SMTP server

void setAuth(bool $auth)

Use AUTH login or no auth.

void setHost(mixed $host)

Sets the host to connect to.

void setPass(string $pass)

Sets the password to use with AUTH LOGIN

void setPort(mixed $port)

Sets the port, used in the connection.

void setSecure(string|null|false $secure)

Sets the encryption used.

Parameters
  • $secure string|null|falseThe encryption used. Can be 'ssl', 'tls' or false

void setUser(string $user)

Sets the username to use with AUTH LOGIN

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details