Results 1 to 6 of 6

Thread: Zimlet to prepare a formated email

  1. #1
    Join Date
    Apr 2008
    Location
    France
    Posts
    48
    Rep Power
    7

    Default Zimlet to prepare a formated email

    Hi,

    I'm not very confident with developpement in general and specially with javascript but I need to develop a zimlet which can prepare a formated mail with only a signle click on the zimlet icon.

    I'm lost in the documentations, indeed as someone that doesn't like code

    Do you know how to do a simple zimlet like this ?

    What I'd like is a simple zimlet that can send an email to "a" with a body and subject that I can edit in the code

    Is it simple to do that ? I tried to understand some codes from other zimlets that were sending e-mails but I cound't make it to work correctly

    Thank you

    Regards
    3 Release 5.0.16_GA_2313.UBUNTU6 Network edition
    AND
    1 Release 6.0.0_BETA2_1547.UBUNTU8 UBUNTU8 FOSS edition

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

    Cool

    Hi kaltera,

    It is very simple.
    There was a thread about this already :
    opening-new-message-dialog-zimlet.html

    I made a zimlet example using the code given in this thread :
    Attached Files Attached Files

  3. #3
    Join Date
    Apr 2008
    Location
    France
    Posts
    48
    Rep Power
    7

    Default

    Thank you very much tdesorbaix, that's exactly what I was looking for and it works perfectly!!

    Do you know,based on that zimlet, how to generate a number which is increased by 1 everytime it is used and placed in the mail subject ?

    I don't know if a Zimlet is smarter enough to keep in mind a number

    Cheers,
    Yohann
    3 Release 5.0.16_GA_2313.UBUNTU6 Network edition
    AND
    1 Release 6.0.0_BETA2_1547.UBUNTU8 UBUNTU8 FOSS edition

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

    Cool

    Yeah, it is also very simple.
    The number will be reset to 1 when you disconnect from your session or when you refresh your zimbra in the browser.

    Here is the modified version :
    Attached Files Attached Files

  5. #5
    Join Date
    Apr 2008
    Location
    France
    Posts
    48
    Rep Power
    7

    Default

    Thank you for the answer, it is quite clear to me now !!

    And if I don't want to reset that value to 1 ? I'd like to do this in particular :

    User A sends mail with subject : Subjet #1
    User B sends mail with subject : Subject #2
    User A sends mail with subject : Subject #3
    User C sends mail with subject : Subject #4

    If I do not set the Compose_Mail_Example.count to 0, will that value stay as the last value for each user not depending on any session opened ?
    3 Release 5.0.16_GA_2313.UBUNTU6 Network edition
    AND
    1 Release 6.0.0_BETA2_1547.UBUNTU8 UBUNTU8 FOSS edition

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

    Default

    If you want that the count is not for one user, but for all the users of the server, you have to store the value on the server side.
    The javascript is executed on the client side, so you can't do it directly in the javascript file.
    You ll have to use a jsp page (executed on the server side) for example called in your javascript file.

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03: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
  •