Results 1 to 5 of 5

Thread: Add another send button on the mail toolbar

  1. #1
    Join Date
    Apr 2010
    Posts
    24
    Rep Power
    5

    Default Add another send button on the mail toolbar

    Hi

    im looking for a zimlet that would add another button say next to the "Send" button. It would be named something like "Send to archive". The new button would send the email as normal, but always with a fixed cc address.

    I have managed to get a button up in the mail toolbar. So basically wondering how i can get it to do what i want.

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Did you take a look at the Zimlet threads ?

    http://www.zimbra.com/forums/zimlets...mail-sent.html

  3. #3
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    You can also look at the salesforce zimlet : "com_zimbra_sforce.zip"

    It add a button in the compose view next to the "Send" button.

  4. #4
    Join Date
    Apr 2010
    Posts
    24
    Rep Power
    5

    Default

    Thank you for the replies. I have looked at the Launch action on mail sent tread , and tried to combine that code with mine , but it only made my button disapear, so im guessing im doing it wrong.

    Here is my current code :

    com_zimbra_test_HandlerObject = function() {
    };
    com_zimbra_test_HandlerObject.prototype = new ZmZimletBase;
    com_zimbra_test_HandlerObject.prototype.constructo r = com_zimbra_test_HandlerObject;

    com_zimbra_test_HandlerObject.prototype.initialize Toolbar =
    function(app, toolbar, controller, viewId) {

    if (viewId.indexOf(ZmId.VIEW_COMPOSE) ==0) {
    // get the index of "View" menu so we can display the button after that
    var buttonIndex = 0;
    for (var i = 0; i < toolbar.opList.length; i++) {
    if (toolbar.opList[i] == ZmOperation.VIEW_MENU) {
    buttonIndex = i + 1;
    break;
    }
    }

    var buttonParams = {
    text : "Send to Archive",
    tooltip: "This button sends a email with cc to a fixed address ",
    index: buttonIndex, // position of the button
    image: "zimbraicon" // icon
    };

    // creates the button with an id and params containing the button details
    var button = toolbar.createOp("Send to Archive", buttonParams);
    button.addSelectionListener(new AjxListener(this, this._showSelectedMail, controller));
    }
    };

    // * Add cc and send mail.
    com_zimbra_test_HandlerObject.prototype._showSelec tedMail =
    function(controller) {





    };
    That is my code so far. Its pretty much something i have taken from some examples. Wich gets the job of adding the button done.

    I`m missing som code under the "Add cc and send email" part. kinda stuck on what to put in there so that the button will be able to send mail with a fixed cc address. Would be nice with some advice. As my javascript & zimbra knowledge is limited. But rising fast

  5. #5
    Join Date
    Jan 2010
    Posts
    161
    Rep Power
    5

    Default

    Quote Originally Posted by berjos View Post
    Thank you for the replies. I have looked at the Launch action on mail sent tread , and tried to combine that code with mine , but it only made my button disapear, so im guessing im doing it wrong.

    Here is my current code :



    That is my code so far. Its pretty much something i have taken from some examples. Wich gets the job of adding the button done.

    I`m missing som code under the "Add cc and send email" part. kinda stuck on what to put in there so that the button will be able to send mail with a fixed cc address. Would be nice with some advice. As my javascript & zimbra knowledge is limited. But rising fast

    Did you ever get a functioning button? I am trying to do something similar. I want to add a second send button that will modify the subject of the message then send.

    Thanks!

Similar Threads

  1. Mail deferred with Connection timed out
    By Miklos Kalman in forum Administrators
    Replies: 7
    Last Post: 11-17-2012, 05:11 AM
  2. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  3. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 07:20 AM
  4. [SOLVED] Zimbra don't work - zmmailboxd
    By dmalherbe in forum Administrators
    Replies: 10
    Last Post: 11-20-2008, 09:05 AM
  5. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 09:43 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
  •