Configuring the SMTP adapter
BMC recommends that you do not include unused elements in the adapter configuration because they might cause errors.
Adapter type: ro-adapter-smtp[version]
Default adapter name: SMTPAdapter
To configure the SMTP adapter, see Configuring base adapters.
The following table describes the adapter configuration elements for the SMTP adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
The following figure shows an XML template of the adapter configuration for the SMTP adapter.
XML template of the SMTP adapter configuration
<target></target>
<port></port>
<authenticate></authenticate>
<user-name></user-name>
<password encryption-type=""></password>
<javamail-debug></javamail-debug>
<disable-mail-interaction></disable-mail-interaction>
<starttls></starttls>
<max-attachment-size></max-attachment-size>
<file-name-filter>
<file-name></file-name>
<file-name></file-name>
</file-name-filter>
<file-type-filter>
<file-type></file-type>
<file-type></file-type>
</file-type-filter>
<use-ssl-certificate></use-ssl-certificate>
<allow-unsigned-certificate></allow-unsigned-certificate>
<install-certificate></install-certificate>
<passphrase></passphrase>
<character-set></character-set>
</config>
The following figure shows an XML sample of the SMTP adapter configuration.
XML sample of the SMTP adapter configuration
<target>smtp.runbox.com</target>
<authenticate>true</authenticate>
<user-name>user1</user-name>
<password encryption-type="Plain">1234</password>
<port>26</port>
<character-set>UTF-8</character-set>
</config>
The following figure shows an XML sample of the SMTP adapter configuration with <max-attachment-size>.
XML sample of the SMTP adapter configuration with <max-attachment-size>
<target>smtp.runbox.com</target>
<port>26</port>
<max-attachment-size>1</max-attachment-size>
</config>
The following figure shows an XML sample of the SMTP adapter configuration with the <content-type> element.
XML sample of the SMTP adapter configuration with the <content-type> element
<target>smtp.gmail.com</target>
<port>25</port>
<authenticate>true</authenticate>
<user-name>emailaccount@gmail.com</user-name>
<password encryption-type="Plain">XXXXX</password>
<javamail-debug>false</javamail-debug>
<max-attachment-size>10</max-attachment-size>
<use-ssl-certificate>true</use-ssl-certificate>
<allow-unsigned-certificate>false</allow-unsigned-certificate>
<install-certificate>false</install-certificate>
<passphrase>changeit</passphrase>
<character-set>UTF-8</character-set>
<content-type>text/plain</content-type>
</config>