The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

API for scheduled start/end to auto-responders?

Discussion in 'cPanel Developers' started by Arturas88, Jul 13, 2011.

  1. Arturas88

    Arturas88 Member

    Joined:
    Sep 6, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Where I could find API for current functionality of autoresponders?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Re: [Case 44618] Start/stop dates for vacation responder/auto responder via Webmail

    Let me move your post over to our Developer Discussions forum so those familiar with our APIs can more easily assist you.
     
  3. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi Arturas88,

    You can find documentation on API calls related to autoresponders on the API1 Email module page.

    We are in the process of update that documentation. Until it is updated, here are the changes that you need to know about:


    Update to addautoresponder
    Added three extra parameters on to the end of the Email::addautoresponders call, making the syntax:

    Email::addautoresponder( email, from, subject, body, domain, html, charset, interval, start, stop )
    interval - The frequency that autoresponse emails are sent to a single address
    start - The unix time that the autoresponse should start being sent.
    stop - The unix time that autoresponse should stop being sent.

    Added getarsstart
    Retrieve the start time for an autoresponder
    Email::getarsstart( email );
    email - email address you wish to retrieve the start time for​

    Added getarsstop
    Retrieve the stop time for an autoresponder
    Email::getarsstop( email );
    email - email address you wish to retrieve the stop time for​


    Best Regards,
    -DavidN
     
Loading...

Share This Page