Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    5

    Default Email management

    I am using XMLAPI php class for my project and it worked perfect until I came to Email management part.

    First, I don't see documentation for email functions for API1:
    API Reference

    There are documentation for API2 functions, but most of those functions are for listing, not for creation.

    So, can somebody point me where I can find additional information. Also one example for adding emails to existing cpanel user, using XMLAPI php class would be apricated.

    Thanks!

  2. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    Unfortunately at this point the email API interface is not completely documented which is something we hope to have documented soon.

    however, if let me know what specifically you are wanting to do.. I can give you the interfaces for them. (or give you a utility for working with them)
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    5

    Default

    Thanks for reply.

    I figure out how to add new email to an account

    Can you provide me list of arguments for function for deleting an email(delpop function).

  4. #4
    Member
    Join Date
    Sep 2009
    Posts
    5

    Default

    Can somebody help me to find out what is wrong in xml for deleting forwarding email:

    <cpanelaction>
    <module>Email</module>
    <func>delforward</func>
    <apiversion>1</apiversion>
    <args>test@example.com</args>
    </cpanelaction>

    What I found in source code(dodelfwd.html), is that delforward require only one parameter, and that is email that should be deleted. I tried to remove everything after @ in email, but still don't get any reply.

    I couldn't find anything in this forum, or in existing documentation, so please help!

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by teamred View Post
    Can somebody help me to find out what is wrong in xml for deleting forwarding email:

    <cpanelaction>
    <module>Email</module>
    <func>delforward</func>
    <apiversion>1</apiversion>
    <args>test@example.com</args>
    </cpanelaction>

    What I found in source code(dodelfwd.html), is that delforward require only one parameter, and that is email that should be deleted. I tried to remove everything after @ in email, but still don't get any reply.

    I couldn't find anything in this forum, or in existing documentation, so please help!
    The final parameter is email@yourdomain.test=destination@address.test. Keep in mind, a single email address can have several forwarders, thus forward to several destinations. This syntax accommodates the need to remove only 1 of the forwarders rather than being forced to remove all forwarders for a specific address.

  6. #6
    Member
    Join Date
    Sep 2009
    Posts
    5

    Default

    Thank you for help. It is working finally.

Similar Threads & Tags
Similar threads

  1. Email Management - Allow/Disallow Sending/Receiving
    By darren.nolan in forum E-mail Discussions
    Replies: 0
    Last Post: 10-31-2007, 08:17 PM
  2. cPanel for email management only?
    By antonellomusina in forum E-mail Discussions
    Replies: 0
    Last Post: 11-07-2006, 09:45 AM
  3. Cpanel for email management only
    By antonellomusina in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-07-2006, 09:35 AM
  4. Email Management Tools / Email Address Trace
    By chrisjj in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-20-2006, 11:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube