Mecha CMS

Helper functions.

send

Send HTML email.

2.2.0

send(string $from, string $to, string $title, string $content, array $lot = []);
send(string $from, array $to, string $title, string $content, array $lot = []);

Example:

send(
    '[email protected]',
    '[email protected]',
    'Title Goes Here',
    '<p>Content goes here.</p>'
);

send(
    '[email protected]',
    [
        '[email protected]',
        '[email protected]',
        '[email protected]'
    ],
    'Title Goes Here',
    '<p>Content goes here.</p>'
);

send(
    '[email protected]',
    [
        '[email protected]' => 'Person 1',
        '[email protected]' => 'Person 2',
        '[email protected]' => 'Person 3'
    ],
    'Title Goes Here',
    '<p>Content goes here.</p>'
);