Results 1 to 4 of 4

Thread: auto-send 15minute before appo

  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    4

    Default auto-send 15minute before appo

    Hello, I'd like to send a message to the person invited to the appointment 15 minutes before it. I think using CLI but I do not know how, if the appointment is a recurrence. I tried the following code:
    Code:
    #!/bin/bash
    
    #start date
    DATE=`/bin/date +%D' '%H:%M` 
    D=`/bin/date +%M`
    let D+=16
    DATE2=`/bin/date +%D' '%H:`+D
    
    # for all user
    for i in `zmprov -l gaa`
    do
        # for appointement 
        for app in `zmmailbox -z -m $i s -t appo date:\<DATE2&&\>DATE
           do
    			echo $app
    	   done
    done

  2. #2
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    4

    Default

    Or it's not possible to change the create appointement and add attendees email in red section?
    Code:
    <CreateAppointmentRequest xmlns="urn:zimbraMail">
    <m xmlns="" l="10">
    <inv>
    <comp status="CONF" fb="B" class="PUB" transp="O" draft="0" allDay="0" name="xxxx" loc="">
    <s tz="Europe/Belgrade" d="20110520T143000"/>
    <e tz="Europe/Belgrade" d="20110520T160000"/>
    <or a="test5@zimbratest.local.tec6.net" d="test"/>
    <recur>
    <add>
    <rule freq="DAI">
    <interval ival="1"/>
    </rule>
    </add>
    </recur>
    <alarm action="DISPLAY">
    <trigger>
    <rel m="5" related="START" neg="1"/>
    </trigger>
    </alarm>
    <alarm action="EMAIL">
    <trigger>
    <rel m="5" related="START" neg="1"/>
    </trigger>
    <at a="lol@zimbratest.local.tec6.net;test@zimbratest.local.tec6.net"/>
    </alarm>
    </comp>
    </inv>
    <su>
    xxxx</su>
    <mp ct="multipart/alternative">
    <mp ct="text/plain">
    <content>
    </content>
    </mp>
    <mp ct="text/html">
    <content>
    &lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;</content>
    </mp>
    </mp>
    </m>
    </CreateAppointmentRequest>

  3. #3
    Join Date
    Jan 2010
    Posts
    138
    Rep Power
    5

    Default

    The email alarm section in CreateAppointmentRequest currently supports sending a reminder only to the email address registered under Preferences > Notification.

    If you are creating the appointment using the SOAP API then you try this - Invoke a SaveDraftRequest (after CreateAppointmentRequest) containing your message content and specify the time when the draft should be auto-sent by the server (refer docs/soap.txt).

  4. #4
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    4

    Default

    Thank you for your reply, but if the appointment is a recurrence. How to do?
    Code:
    <SaveDraftRequest>
      <m [id="{existing-draft-id}"] [origid="..." rt="r|w"] [idnt="{identity-id}"] [l="{folder}"] [f="{flags}"] [t="{tag-id-list}"] [color="{color}"] [autoSendTime="{millis-since-epoch}"]>
        <e t="{type}" a="{email-address}" p="{personal-name}"/>+
        <su>{subject}</su>*
        [<irt>{Message-ID header for message being replied to}</irt>]
        <mp ct="{content-type}">
          <content>...</content>
        </mp>
        <attach [aid="{attach-upload-id}"]>
          [<m id="{message-id}" [optional="0|1"]/>]*
          [<mp mid="{message-id}" part="{part-id}" [optional="0|1"]/>]*
          [<cn id="{contact-id}" [optional="0|1"]/>]*
          [<doc (id="{document-id}" | path="{document-path}") [optional="0|1"]/>]*
        </attach>
      </m>
    </SaveDraftRequest>
    I must create as many SaveDraftRequest as recurrence? But if the recurrence has no end?

    Regards,...
    Rémi
    Release 7.0.1_GA_3105.UBUNTU10_64 UBUNTU10_64 FOSS edition.

Similar Threads

  1. Replies: 2
    Last Post: 04-29-2011, 01:51 AM
  2. Replies: 2
    Last Post: 10-20-2010, 12:58 AM
  3. Cannot send mail via connector
    By ericwk in forum Zimbra Connector for Outlook
    Replies: 10
    Last Post: 08-16-2007, 10:46 AM
  4. None of your e-mail accounts could send to this recipient.
    By BarrySDCA in forum Zimbra Connector for Outlook
    Replies: 2
    Last Post: 05-25-2006, 06:58 PM

Posting Permissions

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