## Send email to users

Send mass email to your users with our new and updated email manager

{if $send_email==""}

### Email manager

Email to send at once
loop size of emails when mass emails are sent
From
Enter email address to tell user who sent it
Subject
Enter your email subject
Message
Enter your email message {literal}You can use {username}, {userid}, {email}, {datejoined},{avcode} in your message{/literal}

### More options

#### Active status
Choose whether to send to active users or non active

Yes No Any

#### Banned status
Send email to banned users

Yes No Any

#### User level
Choose which user level to send email

{assign var=levels value=$userquery->get_levels()} {foreach from=$levels item=level} {if $level.user_level_id !='4'} {$level.user_level_name} {/if} {/foreach}

#### User category
User category

{assign var=cats value=$userquery->get_categories()} All {foreach from=$cats item=cat} {$cat.category_name} {/foreach}
Email delivery method
Please choose weather you want browser to send emails or create a background process
Browser Background Process

### Mass email campaigns

{if $emails}

| Subject |
{foreach from=$emails item=email}
| {$email.email_subj} | Send Email | Delete | View From : {$email.email_from} • Method : {$email.method} • Sent : {$email.sent} • Status : {$email.status} {$email.date_added|niceTime} {$email.email_msg|nl2br}
{/foreach}

{else}
No email campaign was found
{/if} {literal}
{/literal} {else}

### Sending emails

{if $send_email} {assign var=email value=$send_email}

##### {$email.email_subj} | From : {$email.email_from} • Method : {$email.method} • Sent : {$email.sent} • Status : {$email.status} {$email.date_added|niceTime} {$email.email_msg|nl2br} | View

Go back to mass email page {$eh->message_list.0} {if $msgs}

{foreach from=$msgs item=msg}
- {$msg}
{/foreach}

{/if} {if ($email.total==$email.sent && $email.sent>0)|| $email.status=='completed'}
Email has been sent to {$email.total} users
{else}
Pelase wait, do not close this window... ( pause resume )
{/if} {/if} {literal}
{/literal} {/if}