...
The SMTP Transport Adaptor (hereinafter the SMTP adaptor) is intended to send FIX messages from FIXEdge from the FIXEdge server to clients using the SMTP protocol.
Configuration
...
Property name | Description |
---|---|
TransportLayer.SmtpTA.DllName | Contains path and name of the SMTP adaptor DLL. The property is required. |
TransportLayer.SmtpTA.Description | Adaptor name. The property is required |
TransportLayer.SmtpTA.Type | The type Type of the adaptor library. Should be 'DLL'. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions | This parameter determines the names of SMTP clients. The SMTP Client name is uses used as a reference of the Client in BL and JavaScripting for the <Send /> action and and the send(<session source identifier>) js fuction JavaScript function. |
TransportLayer.SmtpTA.SMTPSessions.DefaultServerName | Default SMTP server name or IP address. The property is not required |
TransportLayer.SmtpTA.SMTPSessions.DefaultServerPort | Default SMTP server port. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.DefaultFrom | Default value of the 'From' field. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.DefaultCC | Default value of the 'CC' field. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.DefaultBCC | Default value of the 'BCC' field. The property is not required |
TransportLayer.SmtpTA.SMTPSessions.DefaultSmartEmailProcessing | When true, the corresponding tags will be used for e-mail Subject and Body at FIX EMail message conversation. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.DefaultSendingTimeout | Sending message timeout, common for all SMTP sessions. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.DefaultConnectionTimeout | SMTP server connection timeout, common for all SMTP sessions. The property is not required. |
TransportLayer.SmtpTA.SMTPSession.XXX.ServerName | SMTP server name or IP address. The property is required when DefaultServerName is not defined. |
TransportLayer.SmtpTA.SMTPSession.XXX.ServerPort | SMTP server port. The property is required whenDefaultServerPort ia when DefaultServerPort is not defined. |
TransportLayer.SmtpTA.SMTPSession.XXX.SecureConnection | Type of secure connection: TLS, SSL. The property is required if secure connection is needed, otherwise - not required. |
TransportLayer.SmtpTA.SMTPSession.XXX.Login | User login. The property is required if authorization is needed, otherwise - not required. |
TransportLayer.SmtpTA.SMTPSession.XXX.Password | User password. The property is required if authorization is needed, otherwise - not required. |
TransportLayer.SmtpTA.SMTPSession.XXX.From | Value of the 'From' field. The property is not required if DefaultFrom definedif DefaultFrom is defined, otherwise - required. |
TransportLayer.SmtpTA.SMTPSession.XXX.To | Value of the 'To' field. The property is required. |
TransportLayer.SmtpTA.SMTPSession.XXX.CC | Value of the 'CC' field. The property is not required. |
TransportLayer.SmtpTA.SMTPSession.XXX.BCC | Value of the 'BCC' field. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.XXX.SmartEmailProcessing | When If true, the corresponding tags will be used for e-mail Subject and Body at FIX EMail message conversation. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.XXX.SendingTimeout | Message sending timeout, defined for a specified session. The property is not required. |
TransportLayer.SmtpTA.SMTPSessions.XXX.ConnectionTimeout | SMTP server connection timeout, defined for a specified session. The property is not required. |
Note that all changes in the FIXEdge properties file are applied only after FIXEdge restart.
...
- Open the FIXEdge properties file (FIXEdge.properties by default).
- Find the 'TransportLayer.TransportAdapters' property
- Add the 'TransportLayer.TransportAdapters' property in case it does not exist
Set 'TransportLayer.SmtpTA' to the value of the 'TransportLayer.TransportAdapters' property:
Code Block language xml TransportLayer.TransportAdapters = TransportLayer.SmtpTA
If the 'TransportLayer.TransportAdapters' property already has a value - already, append ',TransportLayer.SmtpTA' to the value:
Code Block language xml TransportLayer.TransportAdapters = ...,TransportLayer.SFSAdaptorDLL,TransportLayer.SmtpTA
Add the 'TransportLayer.SmtpTA.Description' property with the value - SMTP adaptor name:
Code Block language xml TransportLayer.SmtpTA.Description = SMTP Transport Adaptor DLL
Add the 'TransportLayer.SmtpTA.DllName' property with the value - path to the SMTP adaptor dll:
Code Block language xml TransportLayer.SmtpTA.DllName = bin/SMTPAdaptorDll.dll
Add the 'TransportLayer.SmtpTA.Type' property with the 'DLL' value:
Code Block TransportLayer.SmtpTA.Type = DLL
Add the set of default properties:
Code Block TransportLayer.SmtpTA.SMTPSessions.DefaultServerName = mail.test_test.com TransportLayer.SmtpTA.SMTPSessions.DefaultServerPort = 25 TransportLayer.SmtpTA.SMTPSessions.DefaultSendingTimeout = 10 TransportLayer.SmtpTA.SMTPSessions.DefaultConnectionTimeout = 10 TransportLayer.SmtpTA.SMTPSessions.DefaultSmartEmailProcessing = false
Add the 'TransportLayer.SmtpTA.SMTPSessions property with value - the set of SMTP client's names:
Code Block TransportLayer.SmtpTA.SMTPSessions = TestSmtp
Add properties for each client, like this:
Code Block TransportLayer.SmtpTA.SMTPSession.TestSmtp.ServerName = mail.test_test.com TransportLayer.SmtpTA.SMTPSession.TestSmtp.ServerPort = 25 TransportLayer.SmtpTA.SMTPSession.TestSmtp.To = jsg@test_test_btobits.com TransportLayer.SmtpTA.SMTPSession.TestSmtp.From = jsg@test_test_btobits.com TransportLayer.SmtpTA.SMTPSession.TestSmtp.CC = TransportLayer.SmtpTA.SMTPSession.TestSmtp.BCC =
- Restart the FIXEdge server to apply changes.
...
When the SMTP adaptor starts, the following record will be written into the log file (xxx is the SMTP adaptor version):
...