Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    Where I could find API for current functionality of autoresponders?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    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

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice