View Single Post
  #4 (permalink)  
Old 06-08-2009, 04:07 PM
cPanelDavidG's Avatar
cPanelDavidG cPanelDavidG is offline
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by sirbrent View Post
Thanks for your response. However I do not believe cpanelfeature is what I need. That will "test" if the feature is enabled on the account through the feature list, but that is not what i am looking for. I am looking for a way to test if there is an auto-responder active on the currently logged-in mail users account. So if someone does not have the auto-responder on they would see text like "The auto-responder is off and you are receiving mail as usual." and if its on see a message such as:

Code:
Your auto-responder is currently ON. Click here to turn off.

Your response:
<cpanel Email="getarsbody(FORM{'email'})">
I hope this clears up what I am trying to do
Ah. Well, here's a slight abuse of API2 syntax but it works for me in the webmail interface:

HTML Code:
<?cp Email::listautoresponders(The auto-responder is enabled)  || 'The auto-responder is off and you are receiving mail as usual' ?>
The quotes are needed for the text/HTML after the ||.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Reply With Quote