Results 1 to 2 of 2

Thread: Sending email zdesktop

  1. #1
    Join Date
    Feb 2010
    Rep Power

    Default Sending email zdesktop

    Hi all,
    i'm new with zimlets.i have installed zdesktop (winxp) i'm trying to send an email inside a zimlet.
    I tried some js code but nothing happened.
    in particular i tried this function:

    function(destName, destEmail, subject, body)
    var soapDoc = AjxSoapDoc.create("SendMsgRequest", "urn:zimbraMail", "noSave=0");
    var m = soapDoc.set("m");
    m.setAttribute("idnt", this.userID);
    var node_e = soapDoc.set("e", null, m);
    node_e.setAttribute("p", this.getUserDisplayName() );
    node_e.setAttribute("a", this.getUserReplyTo());
    node_e.setAttribute("t", "f");
    node_e.setAttribute("p", destName);
    node_e.setAttribute("a", destEmail);
    node_e.setAttribute("t", "t");
    var node_s = soapDoc.set("su",subject , m);
    var node = soapDoc.set("mp", null, m);
    node.setAttribute("ct", "text/plain");
    var subnode = soapDoc.set("content", body, node);
    var command = new ZmCsfeCommand();
    var resp = command.invoke({soapDoc: soapDoc});
    var r = "Message sent";
    DBG.println(AjxDebug.DBG2, "result:" + r);

    Any ideas??
    thank you for your help

  2. #2
    Join Date
    Nov 2009
    Rep Power


    Checkout this example. It shows calling the SOAP API from a Zimlet (in both supported formats: XML + JSON).

    ZCS 6.0:Zimlet Developers Guide:Examples:SOAP API Basics - Zimbra :: Wiki

Similar Threads

  1. [SOLVED] mailboxmanager does not start
    By jrefl5 in forum Administrators
    Replies: 18
    Last Post: 01-30-2012, 10:40 PM
  2. [SOLVED] Moving Zimbra to a new server
    By krolen in forum Administrators
    Replies: 109
    Last Post: 02-05-2009, 10:38 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts