Document Destination - Mail

This example shows how to add a new hourly type schedule (every hour between 26/08/2012 and 14/09/2012). If the schedule fails, there will be 2 retries with 60 seconds between each of them. Schedule the document ID 8002.

Example

POST <webiURL>/documents/8002/schedules

Request body in an XML file:

<schedule>
    <name>test_hourly_mail</name>
    <format type="pdf"/>
    <destination>
        <mail>
            <from>somebody@company.com</from>
            <to>person1@company.com;person2@company.com</to>
            <cc>somebody_in_copy@company.com</cc>
            <bcc>list_of_people_in_blind_copy.company.com</bcc>
            <subject>Web Intelligence Restful WS</subject>
            <message>Text to send</message>
            <addAttachment>true</addAttachment>
        </mail>
    </destination>
    <hourly retriesAllowed="2" retryIntervalInSeconds="30">
        <startdate>2012-08-26T14:00:00</startdate>
        <enddate>2012-09-14T16:00:00</enddate>
        <hour>1</hour>
        <minute>0</minute>
    </hourly>
</schedule>