Earthtracker's Blog

Just another WordPress.com weblog

Enable welcome HTML mail and error fix on Expressionengine user module (by Solspace)

on October 24, 2011

I have been facing problem with the solspace user module’s welcome mail template enable HTML format, when i tried input inline styling , there was an error from ee security.
as template input is filtered by ee()->security->xss_clean, which used to test images for potential XSS attacks, useful for file upload security, I don’t think this should use here, as the html template can be updated by EE admin only.

To resolve this , i have changed the line from mcp.user.base.php
‘preference_value’ => ee()->security->xss_clean($_POST[$pref]),
to
‘preference_value’ => $_POST[$pref]

also to enable HTML formatted email you have to change the file:
mod.user.php line near the line : 5636, add ee()->email->mailtype = “html”; after : ee()->email->initialize();

This should resolve the issue, Cheers!

Read more


One response to “Enable welcome HTML mail and error fix on Expressionengine user module (by Solspace)

  1. robin says:

    very useful!
    Thanks for sharing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: