{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}
{/if}
{if not $core.current_user_prefs.close_popup_windows}
{if $draft_result|default:'' == -1}
{t}An error occurred while trying to run your query{/t}
{elseif $draft_result|default:'' == 1}
{t}Thank you, the email message was saved as a draft successfully.{/t}
{/if}
{if not $core.current_user_prefs.close_popup_windows}