.. _object_SmtpConfiguration: :index:`SmtpConfiguration` -------------------------- Description *********** The SmtpConfiguration object contains all properties required for sending a :ref:`Mail ` object via an SMTP server. :**› Inherits**: :ref:`Object ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 2 * :ref:`authenticationMethod ` * :ref:`encryptionMode ` * :ref:`password ` * :ref:`port ` * :ref:`senderHostname ` * :ref:`server ` * :ref:`username ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`Object.completed() ` Enumerations ++++++++++++ .. hlist:: :columns: 1 * :ref:`AuthMethod ` * :ref:`EncryptionMode ` Properties ********** .. _property_SmtpConfiguration_authenticationMethod: .. _signal_SmtpConfiguration_authenticationMethodChanged: .. index:: single: authenticationMethod authenticationMethod ++++++++++++++++++++ This property holds the method to use when authenticating against the SMTP server. This property was introduced in InCore 2.7. :**› Type**: :ref:`AuthMethod ` :**› Default**: :ref:`SmtpConfiguration.AuthNone ` :**› Signal**: authenticationMethodChanged() :**› Attributes**: Writable .. _property_SmtpConfiguration_encryptionMode: .. _signal_SmtpConfiguration_encryptionModeChanged: .. index:: single: encryptionMode encryptionMode ++++++++++++++ This property holds the encryption type to use when connection to the SMTP server. Encryption should only be disabled in special cases, i.e. when using an internal SMTP relay which does not require authentication. Otherwise username and password are sent unencrypted over the network. This property was introduced in InCore 2.9. :**› Type**: :ref:`EncryptionMode ` :**› Default**: :ref:`SmtpConfiguration.EncryptTLS ` :**› Signal**: encryptionModeChanged() :**› Attributes**: Writable .. _property_SmtpConfiguration_password: .. _signal_SmtpConfiguration_passwordChanged: .. index:: single: password password ++++++++ This property holds the password used for authenticating against the SMTP server. :**› Type**: String :**› Signal**: passwordChanged() :**› Attributes**: Writable .. _property_SmtpConfiguration_port: .. _signal_SmtpConfiguration_portChanged: .. index:: single: port port ++++ This property holds the TCP port of the SMTP server. :**› Type**: SignedInteger :**› Default**: ``25`` :**› Signal**: portChanged() :**› Attributes**: Writable .. _property_SmtpConfiguration_senderHostname: .. _signal_SmtpConfiguration_senderHostnameChanged: .. index:: single: senderHostname senderHostname ++++++++++++++ This property holds the hostname of the sender (i.e. the sending device). It is sent to the SMTP for informational purposes but may be used for anti-spam mechanisms as well. For this reason it's advisable to set a valid and publicly resolvable hostname when talking to public SMTP servers. :**› Type**: String :**› Signal**: senderHostnameChanged() :**› Attributes**: Writable .. _property_SmtpConfiguration_server: .. _signal_SmtpConfiguration_serverChanged: .. index:: single: server server ++++++ This property holds the hostname of the SMTP server to use for sending mails. :**› Type**: String :**› Signal**: serverChanged() :**› Attributes**: Writable .. _property_SmtpConfiguration_username: .. _signal_SmtpConfiguration_usernameChanged: .. index:: single: username username ++++++++ This property holds the username used for authenticating against the SMTP server. :**› Type**: String :**› Signal**: usernameChanged() :**› Attributes**: Writable Enumerations ************ .. _enum_SmtpConfiguration_AuthMethod: .. index:: single: AuthMethod AuthMethod ++++++++++ This enumeration describes supported methods for authenticating against an SMTP server. This enumeration was introduced in InCore 2.7. .. index:: single: SmtpConfiguration.AuthNone .. index:: single: SmtpConfiguration.AuthPlain .. index:: single: SmtpConfiguration.AuthLogin .. index:: single: SmtpConfiguration.AuthCramMd5 .. list-table:: :widths: auto :header-rows: 1 * - Name - Value - Description .. _enumitem_SmtpConfiguration_AuthNone: * - ``SmtpConfiguration.AuthNone`` - ``0`` - .. _enumitem_SmtpConfiguration_AuthPlain: * - ``SmtpConfiguration.AuthPlain`` - ``1`` - .. _enumitem_SmtpConfiguration_AuthLogin: * - ``SmtpConfiguration.AuthLogin`` - ``2`` - .. _enumitem_SmtpConfiguration_AuthCramMd5: * - ``SmtpConfiguration.AuthCramMd5`` - ``3`` - .. _enum_SmtpConfiguration_EncryptionMode: .. index:: single: EncryptionMode EncryptionMode ++++++++++++++ .. index:: single: SmtpConfiguration.EncryptNone .. index:: single: SmtpConfiguration.EncryptSSL .. index:: single: SmtpConfiguration.EncryptTLS .. list-table:: :widths: auto :header-rows: 1 * - Name - Value - Description .. _enumitem_SmtpConfiguration_EncryptNone: * - ``SmtpConfiguration.EncryptNone`` - ``0`` - .. _enumitem_SmtpConfiguration_EncryptSSL: * - ``SmtpConfiguration.EncryptSSL`` - ``1`` - .. _enumitem_SmtpConfiguration_EncryptTLS: * - ``SmtpConfiguration.EncryptTLS`` - ``2`` - Example ******* See :ref:`Mail example ` on how to use SmtpConfiguration.