Extension, Module

Archived
Forum
(read-only)


For official support, visit the official support site »

Smart Members PRO

ExpressionEngine 2, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From ZealousWeb

     

Email from template file doesn’t work (ee3)

Bug Report

Lulu
Lulu

Hi,

I have tested different settings, but I’m getting errors when NOT setting “Email template for new registrations” to “Default” in “Add-On Manager > Smart Members > Basic settings”.

I am now testing the case of “Forgot password Email template”.

When I set the email template via the CP, OR I set the email template via the tag parameter like this:

email:template='_emails/_email_forgotten_password' 

And I submit the Forgotten Password Form, I get the following error on screen:

Exception Caught
SQLSTATE[42S22]
Column not found1054 Unknown column 'save_template_file' in 'field list':
SELECT tg.group_nametemplate_nametemplate_datatemplate_typetemplate_notescacherefreshno_auth_bounceallow_phpphp_parse_locationsave_template_file FROM exp_templates texp_template_groups tg WHERE t.template_id '274' AND tg.group_id t.group_id

mysqli_connection
.php:122 

 

Lulu
# 1
Lulu

I have a workaround for the issue (it’s the same way I worked around the fact that the default email templates are not able to be saved to a file).

What I did/do is place the following in the CP textarea for the template:

{exp:smart_members:profile}
    {embed
="_emails/_email_forgotten_password" embed="{member_id}"}
{
/exp:smart_members:profile} 

You can pass variables you need to to the email template. In this case I need the member_id to parse the “exp:smart_members:profile” tag.

This method probably costs a lot of overhead but it’s the only way I know of.

ZealousWeb
# 2
Developer
ZealousWeb

Hello

I think you should update your smart members PRO version to 1.2.5.
If you have any further query then let me know at himanshu@zealousweb.com

Thanks,
Himanshu
(zealousweb support)