View Single Post
  #6 (permalink)  
Old 06-08-2009, 04:54 PM
sirbrent sirbrent is offline
Registered User
 
Join Date: Sep 2008
Posts: 91
sirbrent is on a distinguished road
Still Open: Rewriting Auto-response Page, need assistance.

It is heading in the right direction

Might I ask for your expertise in abusing the API one more time???

What I am trying to output if the user has auto-responder enabled is this:

Code:
The auto-responder is currently enabled.
<a href="dodelautoresconfirm.html?email=%&redirectdomain=$FORM{'domain'}" onclick="delautoresconfirm('%');return false;">Turn off</a>
<br /><br />
Your response:
<br /><br />
<cpanel Email="getarsbody(FORM{'email'})">
<br /><br />
That looks a little messy, but hopefully you get the main idea -- <cpanel Email="getarsbody(FORM{'email'})"> would be replaced with the body of the set autoresponder.

So I imagine it would look something like this, I know this looks REALLY messy. I don't know how the syntax should look exactly, but the functionality should be roughly correct?

Code:
<cpanelif $appname==webmail>
<br />

<?cp Email::listautoresponders(The auto-responder is currently enabled. [a href="dodelautoresconfirm.html?email=%&redirectdomain=$FORM{'domain'}" onclick="delautoresconfirm\{leftparenthesis}'%'\{rightparenthesis};return false;"]Turn off[/a][br /][br /]Your response:[br /][br /]<cpanel Email="getarsbody(FORM{'email'})"])>[br /][br /]  || 'The auto-responder is off and you are receiving mail as usual' ?>

</cpanelif>
Thanks again for your help.

Last edited by sirbrent; 06-08-2009 at 05:16 PM. Reason: Marked as Opened
Reply With Quote