{include file="header.tpl.html"}
{if $send_result != '' and $smarty.post.form_stays != 1}
{if $send_result == -1}
{t}An error occurred while trying to run your query{/t}
{elseif $send_result == -2}
{t}Sorry, but the email could not be queued. This might be related to problems with your SMTP account settings.{/t}
{t}Please contact the administrator of this application for further assistance.{/t}
{elseif $send_result == 1}
{t}Thank you, the email was queued to be sent successfully.{/t}
{include file="app_messages.tpl.html"}
{/if}
{if $draft_result == -1}
{t}An error occurred while trying to run your query{/t}
{elseif $draft_result == 1}
{t}Thank you, the email message was saved as a draft successfully.{/t}
{/if}