ContactMailService

This service class contains a method for sending Emails.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

string

$pluginNamespace

Methods
public sendMail($mailTemplate, $mailData = []):bool

Send an email using a template and a data object

Parameters

Type

Name

Description

string

$mailTemplate

The template for the email

array

$mailData

Optional: Data for Email