public function InstapageCmsPluginWPConnector::mail in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/connectors/InstapageCmsPluginWPConnector.php \InstapageCmsPluginWPConnector::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/ InstapageCmsPluginWPConnector.php, line 756
Class
- InstapageCmsPluginWPConnector
- Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.
Code
public function mail($to, $subject, $message, $headers = '', $attachments = array()) {
return wp_mail($to, $subject, $message, $headers, $attachments);
}