Page 1 of 1
Set default to default "send in plain testonly"
Posted: Thu Dec 10, 2020 6:57 am
by btayl
Is their a way to set the default for all users to emails "send in plain text only"
Re: Set default to default "send in plain testonly"
Posted: Thu Dec 10, 2020 5:32 pm
by dchurch
Unfortunately no. The hard-coded default is defined in a few places in the code.
One workaround is to modify the database directly (maybe put this in a cron script):
Code: Select all
insert into xi_usermeta (user_id, keyname, keyvalue)
select user_id, 'email_plaintext', 1
from xi_users xu
where not exists (
select * from xi_usermeta x where x.user_id = xu.user_id and keyname = 'email_plaintext'
);
So if you put that in a shell script, and have it run every x-amount-of-time, it'll set the default for users who haven't set a yes or no under receiving plaintext emails.
Re: Set default to default "send in plain testonly"
Posted: Mon Dec 14, 2020 5:01 pm
by dchurch
Just checking in since we haven't heard from you in a while. Did that solve your problem?
Re: Set default to default "send in plain testonly"
Posted: Tue Dec 15, 2020 8:09 am
by btayl
Post thank you but I ma not going to touch the database you can close this ticket.
Re: Set default to default "send in plain testonly"
Posted: Tue Dec 15, 2020 8:22 am
by scottwilkerson
btayl wrote:Post thank you but I ma not going to touch the database you can close this ticket.
Closing thread