The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Smolder::Email

DESCRIPTION

Smolder utility class used to send multi-part MIME email messages

METHODS

send_mime_mail

This class method will create and send the email. It receives the following named arguments:

name

The name of the email message. This directly corresponds to the template used for the email creation (under the templates/Email directory).

to

The 'to' address of the recipient

subject

The subject line of the email

tt_params

This is a hash ref that will be passed to the template in order to create the email message

    Smolder::Email->send_mime_email(
        name        => 'some_email',
        to          => 'someone@something.com',
        subject     => 'Something for you',
        tt_params   => {
            foo => $foo,
            bar => $bar,
        },
    );

The 'From' address for all emails is determined from the FromAddress in conf/smolder.conf. If an error occurs, the error message will be returned.