You are here

public static function InstapageCmsPluginConnector::mail in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginConnector.php \InstapageCmsPluginConnector::mail()

Sends an e-mail using CMS native email sending method.

Parameters

string $to Receiver address.:

string $subject A subject.:

string $message A message.:

string $headers Message headers. Default: ''.:

aray $attachments Attachments.:

Return value

bool True on success.

File

core/connectors/InstapageCmsPluginConnector.php, line 233

Class

InstapageCmsPluginConnector
Main connector class, used to integrate with PHP-based CMSes. It's job is to detect a CMS that executes the code and select proper CMS Connector.

Code

public static function mail($to, $subject, $message, $headers = '', $attachments = array()) {
  return self::getSelectedConnector()
    ->mail($to, $subject, $message, $headers, $attachments);
}