Do Send Email

Resource type: sendmail

With this API call an email can be sent analogously to the mail composer in onOffice enterprise. If the email contains macros, they will be replaced by address data (receiver) and estate data (estateids). All types of file attachments can also be sent.

The mailbox through which the email is sent must be assigned to the API user. You can define the assignment in the e-mail administration under “Extras -> Settings -> Basic Settings -> Email”.

Parameters:

  • emailidentity
    STRING. MANDATORY. Identity under whose name the emails should be sent. Can only accept identities associated with the user in enterprise.
  • receiver
    ARRAY. MANDATORY. Receiver of the email. Both valid email addresses and database IDs of enterprise addresses can be applied here. Must contain at least one valid element. When sending web exposés, it is mandatory to enter an address ID. Note: If you specify an address ID for receiver and not a mail address, only one address ID can be specified.
  • cc
    ARRAY. Copy receiver of the email. Both valid email addresses and database IDs of enterprise addresses can be applied here.
  • bcc
    ARRAY. Blind copy receiver of the email. Both valid email addresses and database IDs of enterprise addresses can be transferred here.
  • displayName
    STRING. Display name. The display name is an addition to a sender mail address that is displayed to the recipient of an e-mail instead of the sender mail address.
  • subject
    STRING. Email subject.
  • body
    STRING. Email content. Ignored if templateid has a valid value.
  • templateid
    INTEGER. ID of an email template stored in enterprise. It is prioritized over the email content. The possible identifiers can be queried via Email & PDF exposé templates.
  • replyto
    STRING. Email address for email reply.
  • estateids
    ARRAY. Database IDs of estates in enterprise.
  • useHtml
    BOOLEAN. Mail is sent as html if true, otherwise as text.
  • pdfexposeidentifiers
    ARRAY. Identifiers for PDF exposés. The possible identifiers can be queried via Get templates.
  • pdfletterids
    ARRAY. IDs of the PDF letters sent as attachments. The possible IDs can be queried via Get templates. The IDs of mail template attachments can be queried via the API call Default attachments.Note: Exposes can be attached to PDF letters in enterprise. These attachments of PDF letters are not sent via API. If required, these can be added explicitly in the API call via the pdfexposeids parameter. If an exposé is attached to the e-mail and mergeexposeintopdfletter is set to true, a maximum of one PDF letter can be attached.
  • pdfformids
    ARRAY. IDs of the PDF forms sent as attachments. The possible IDs can be queried via Get templates. The IDs of mail template attachments can be queried via the API call Default attachments.
  • webexposeids
    ARRAY. IDs of the web exposés. The possible IDs can be queried via Get templates. Web exposés be sent with the macros _WebExpose, _downloadLink or _agreementLink. If several web exposés are specified, _WebExpose will send the first specified web exposé, but _downloadLink and _agreementLink will provide links to all web exposés. See also 3rd example below.
  • documentattributes
    ARRAY. Field names of the document attributes. The possible identifiers can be queried via Field Configuration with module file.
  • onlineattachmentids
    ARRAY. The IDs of the estate files from the files tab. The IDs can be queried via Estate files. Files of the file type link can also be sent.
  • mergeexposeintopdfletter
    BOOLEAN. Exposé and PDF letter attachments are merged into one document and sent as one attachment file. If an exposé is attached to the email and mergeexposeintopdfletter is set to true, a maximum of one PDF letter can be attached. Default: false.
  • attachmentsDirectData
    OBJECT. Sends a base 64-encoded string as a file attachment.An object can be specified for this in the parameter “attachmentsDirectData”. The keys from the objects represent the file names and point to the respective files, which are specified as a character string encoded in base64. See the fourth example.
  • messageid
    STRING. Message ID. Message ID of an existing email. Used together with parameters forwarded or replied to forward or reply to this email. See 5th example for usage.
  • forwarded
    BOOLEAN. Used together with parameter messageid. Specifies that the email with the specified message ID is to be forwarded. See 5th example for usage.
  • replied
    BOOLEAN. Used together with parameter messageid. Specifies that the email with the specified message ID is to be replied to.
  • addoriginalmailattachments
    BOOLEAN . Used together with parameters messageid and forwarded or replied. With this parameter you can specify whether the attachments of the linked email must be attached to the mail to be sent. See 5th example for usage.
  • attachLinkedMailToHtmlMessage
    BOOLEAN. Used together with parameters messageid and forwarded or replied. With this parameter you can control whether the content of the original mail is to be attached to the content of the mail to be sent. See 5th example for usage.

1st example: Send mail from mail template

{
    "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do",
    "resourceid": "",
    "identifier": "",
    "resourcetype": "sendmail",
    "parameters": {
        "emailidentity": "max.mustermann@my-onoffice.de",
        "templateid": 1211,
        "useHtml": true,
        "receiver": [
            "marie.musterfrau@onoffice.de"
        ]
    }
}

2nd example: Send mail with attachments (here exposes)

    {
        "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do",
        "resourceid": "",
        "identifier": "",
        "resourcetype": "sendmail",
        "parameters": {
            "emailidentity": "sender@myonoffice.de",
            "body": "message of the mail",
            "subject": "subject of the mail",
            "pdfexposeidentifiers": [
                "urn:onoffice-de-ns:smart:2.5:pdf:expose:lang:Expos\u00e9 Electra",
                "urn:onoffice-de-ns:smart:2.5:pdf:expose:lang:Expos\u00e9 Gable"
            ],
            "estateids": [
                12,
                23
            ],
            "receiver": [
                "receicer@onoffice.de"
            ]
        }
    }

3nd example: Send mail with webexpose

    {
        "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do",
        "resourceid": "",
        "identifier": "",
        "resourcetype": "sendmail",
        "parameters": {
            "emailidentity": "r.igelmund_test@my-onoffice.de",
            "subject": "subject of the mail",
            "body": "_WebExpose(message of the mail)",
            "webexposeids": [
                53
            ],
            "estateids": [
                1685
            ],
            "receiver": [
                237
            ]
        }
    }

4th example: Send a base 64-encoded string as a file attachment.

{
    "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do",
    "resourceid": "",
    "identifier": "",
    "resourcetype": "sendmail",
    "parameters": {
        "emailidentity": "t.test@my-onoffice.de",
        "templateid": 4189,
        "useHtml": true,
        "receiver": [
            "121"
        ],
        "estateids": [57], 
        "attachmentsDirectData": {"filename" : "iVBORw0KGgoAAAANSUhEUgAAAMgAAAApCAYAAABwQGa5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAF+mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5b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6fgx0OnLYq91ZuIqOY7SGotl3dEq/jXj1582NDfQdPJwe1bHam0nIdKlCPwn3KoVkxHHR/xlefycEr1Mo6d0PRbVPDs59NEo69CvTHG16DFqe5ilk5hyATNUFyAfogVbYuIxCurovIC7q/R6FoOBRKHZxbLQ9BrF4E8Ob/gKbjxylzZcQs9jyDvvhKJ/JcjZDXEQUGW1tbqJ6m340rA2XnQIkSKeiOoiro7YrkS1fhQafn7rgSIsZFPKoxiFGz59Fh6JnGC6I4DTIj5DJcy3STmcip3d8tN/9sOn+FDIBnHR3Q9HrBcj3KUOmlvtJNZc+/wOUE2atpfUFNhM52hbs2Rbly4QZrO2BQchpfYKEVe4CTERJhLS2NNNv6Eg+XrqUBy48mob6xJSk+RQ0Rz2FrFt/8bndkdaYhzSB87/uRxrFL6xyM3xYUefS2EeipYSeRsHY7VAe0kzkX52LUnn2pVCP4qjs0SiV/XIK6SE+67YPErq7USQ8y4JvX6CNyCFbOEuSm8NQtM7pRDSYkgKMWbA1MlGmoAKfrHk7V+INlsrefWlYU8t94w+ifnUsXednSBB+HR3nWJ4Lo+98Dvk5v0KmjktMPBA55TuQ7NC6lf3C1HU/M/ZqipPuLor+O6Eai7SYo2GPi/67+1tIIQXmAq/fnkirPI2c/0lkr13/AhlRjuICu6CZdSx2AU6IPsgGHoQo4FJruSahEg2egxCduQLRlElp1+uRc3oXQZFOn0EDefZ/rrEWpgZRr00UzJpVFK/zelz02QVOZqJfaPoEzdJzKVDAISqQPxOaWMuRpngdaaER0XYtimkMQBrkXgrp4k2I1XKLTHeLzu2E4zZk7u2A/Jd5KJ7j/KUW/kp+jfSvCX8BRo6BT90AHZwAAAAASUVORK5CYII="}
    }
}

5th example: Attach the content of the original mail to the content of the mail to be sent

{
    "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:do",
    "resourceid": "",
    "identifier": "",
    "resourcetype": "sendmail",
    "parameters": {
        "emailidentity": "sender@myonoffice.de",
        "body": "message of the mail",
        "subject": "Fwd: subject of the mail",
        "messageid": "<linked message id>",
        "forwarded": true,
        "addoriginalmailattachments": true,
        "attachLinkedMailToHtmlMessage": true,
        "receiver": [
            "receicer@onoffice.de"
        ]
    }
}