...
The SMTP adaptor is configured by means of the following properties:
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 | Type of the adaptor library, contains 'DLL' value. The property is required. |
TransportLayer.SmtpTA.SMTPSessions | This parameter determines the names of SMTP clients. |
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 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 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 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 properties file are applied only after FixEdge restart.
...
By default the SMTP adaptor puts log messages into the FIXEdge log. Ececute Execute the following steps to configure the SMTP adaptor logging into a separate file:
- Open FixEdge properties file
Add 'Log.SMTPAdaptorSmtpAdaptorTransportLayer.SmtpTA.File.Name' property with value - path and name of the SMTP adaptor log file.
Code Block Log.SMTPAdaptorSmtpAdaptorTransportLayer.SmtpTA.File.Name = SMTP.log
Restart FixEdge
...
Code Block | ||
---|---|---|
| ||
smtp-source -v -f <from> -t <to> -S "Test Email" <email_server> |
Troubleshooting
Problem | Solution |
---|---|
FixEdge start fails and the FixEdge log file contains the following record: [FATAL] 20070215-11:42:25.250 - Transport Layer has failed to initialize: Error loading DLL './/../SMTPAdaptorAddin.dll '. : The specified module could not be found. (126) | FixEdge is unable to find the SMTP adaptor library file. Make sure that 'TransportLayer.SmtpTA.DllName' contains valid path and name. |
FixEdge start fails and the FixEdge log file contains the following record: [FATAL] 20070215-11:45:12.312 - Transport Layer has failed to initialize: Cannot find the 'TransportLayer.SmtpTA.XXX' property. | The SMTP adaptor was not configured properly. The required 'TransportLayer.SmtpTA.XXX' property does not exist in the FixEdge property file. |
FixEdge is started but the FixEdge log file does not contain 'SMTP Adaptor v.xxx started' record. | Make sure that the SMTP adaptor was configured properly in the FixEdge property file:
|
Make sure that the FixEdge log file does not contain any related error messages. |
...