| Server IP : 104.21.37.246 / Your IP : 172.71.28.146 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/task/2388322/cwd/webmail/jupiter/mail/ |
Upload File : |
[% SET CPANEL.CPVAR.dprefix = "../" %]
[%
USE Uapi;
SET add_autoresponder_response = execute("Email", "add_auto_responder", {
"email" => RAW_FORM.item("email"),
"from" => RAW_FORM.item("from"),
"subject" => RAW_FORM.item("subject"),
"body" => RAW_FORM.item("arbody"),
"domain" => RAW_FORM.item("domain"),
"is_html" => RAW_FORM.item("html"),
"charset" => RAW_FORM.item("charset"),
"interval" => RAW_FORM.item("interval"),
"start" => RAW_FORM.item("start"),
"stop" => RAW_FORM.item("stop")
});
action = RAW_FORM.item("action");
%]
[% WRAPPER '_assets/master.html.tt'
app_key = 'autoresponders'
%]
<div class="body-content">
[% IF add_autoresponder_response.status %]
<div class="section">
[% IF action == 'create' %]
<h2 id="hdrAddAutoResponders">[% locale.maketext("Add Autoresponder") %]</h2>
[% ELSE %]
<h2 id="hdrAddAutoResponders">[% locale.maketext("Modify Autoresponder") %]</h2>
[% END %]
<div id="addRespondersSuccess" class="alert alert-success">
<span id="addRespondersSuccessImg" class="glyphicon glyphicon-ok-sign"></span>
<div id="addRespondersSuccessMsg" class="alert-message">
[% IF !(ExpVar.expand('$appname') == "webmail") %]
[% IF action == 'create' %]
[% locale.maketext("You successfully created the “[_1]” autoresponder.",FORM.item('email') _ '@' _ FORM.item('domain')) %]</strong>
[% ELSE %]
[% locale.maketext("You successfully modified the “[_1]” autoresponder.",FORM.item('email') _ '@' _ FORM.item('domain')) %]</strong>
[% END %]
[% END %]
[% IF (ExpVar.expand('$appname') == "webmail") %]
[% IF action == 'create' %]
[% locale.maketext("You successfully created the “[_1]” autoresponder.",FORM.item('email2')) %]
[% ELSE %]
[% locale.maketext("You successfully modified the “[_1]” autoresponder.",FORM.item('email2')) %]
[% END %]
[% END %]
</div>
</div>
</div>
[% ELSE %]
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>
<div class="alert-message">
<strong class="alert-title">[% locale.maketext('Error:') %]</strong>
<span class="alert-body">
[% FOREACH err IN add_autoresponder_response.errors %]
[% err.html() %]
[% END %]
</span>
</div>
</div>
[% END %]
[% IF (ExpVar.expand('$appname') == "webmail") %]
[% INCLUDE _assets/return_link.html.tt return_location='../index.html' return_link_text=locale.maketext('Go Back') %]
[% ELSE %]
[% INCLUDE _assets/return_link.html.tt return_location='autores.html' return_link_text=locale.maketext('Go Back') %]
[% END %]
</div>
[% END %]