# MailConfigurationType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Where and how to send mail notifications (or any other mail messages).

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
server | property MailServerConfigurationType | [0,-1] |
defaultFrom | property string | [0,1] | What to put into "From" field of mail messages (unless overridden by specific situation).
debug | property boolean | [0,1] | Enables quite crude debugging of javamail - sending diagnostics to standard output (console).
redirectToFile | property string | [0,1] | Instead of sending mail via SMTP, writes all messages to a file.
logToFile | property string | [0,1] | In addition to sending mail via SMTP, writes all messages to a file.

- ### Items

  - #### server

    Flags: RAM,runtime

    Multiplicity: [0,-1]

  - #### defaultFrom

    Flags: RAM,runtime

    Multiplicity: [0,1]

    What to put into "From" field of mail messages (unless overridden by specific situation).

  - #### debug

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Enables quite crude debugging of javamail - sending diagnostics to standard output (console).

  - #### redirectToFile

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Instead of sending mail via SMTP, writes all messages to a file. Useful for debugging.

  - #### logToFile

    Flags: RAM,runtime

    Multiplicity: [0,1]

    In addition to sending mail via SMTP, writes all messages to a file. Useful for debugging.