Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting exception error on 3.0.38 #3

Open
lesaff opened this issue Oct 26, 2016 · 0 comments
Open

Getting exception error on 3.0.38 #3

lesaff opened this issue Oct 26, 2016 · 0 comments

Comments

@lesaff
Copy link

lesaff commented Oct 26, 2016

Hi, I am getting this exception error

Exception: Method WireMailBranding::hookMethodInlineCSS does not exist or is not callable in this context (in /Users/rudy/Sites/**********/public/wire/core/Wire.php line 416)

I am running PW 3.0.38
I am calling WireMail via function in my module class like this

    public static function sendRegistrationConfirmation($params = array())
    {

        // Initiate WireMail
        $mail = new WireMail();

        $mail->header('X-Mailer', 'Sendgrid'); 
        $mail->to($params['to']);
        $mail->from($params['from']);
        $mail->subject($params['subject']);
        $mail->bodyHTML($params['body']);
        $mail->inlineCSS("wrapper");
        $mail->template("/site/templates/email/" . $params['template']);

        // Send email confirmation
        $numSent = $mail->send();

        // Write successful task to log
        $email = $params['to'];
        $log = wire("log");
        $log->save("memberships_module", "Email confirmation has been sent to $email");

    }

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant