Atomia Billing Server

Atomia Billing Mail Dispatcher configuration

34 views 0

NHibernate (database connection) configuration

In order for Mail Dispatcher to work properly, it has to have access to the AtomiaBilling database. Database access is configured in the hibernate-configuration section of the Atomia Billing Mail Dispatcher configuration file (Atomia.Biling.Core.MailDispatcher.config ). The property the should be updated isconnection.connection_string . Its value should contain a proper connection string for the AtomiaBilling database:

<property name="connection.connection_string">
 Server=localhost\MSSQL;Initial Catalog=AtomiaBilling;Integrated Security=True
</property>

Here is an example of a complete hibernate-configuration section for the Atomia Billing Mail Dispatcher:

<!-- NHibernate configuration -->
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
 <session-factory>
   <property name="connection.provider">
     NHibernate.Connection.DriverConnectionProvider
   </property>
   <property name="dialect">
     NHibernate.Dialect.MsSql2005Dialect
   </property>
   <property name="connection.driver_class">
     NHibernate.Driver.SqlClientDriver
   </property>
   <property name="command_timeout">
     180
   </property>
   <property name="connection.connection_string">
     Server=localhost\MSSQL;Initial Catalog=AtomiaBilling;Integrated Security=True
   </property>
   <property name="cache.provider_class">
     NHibernate.Cache.HashtableCacheProvider
   </property>
   <property name="cache.use_second_level_cache">
     true
   </property>
   <property name="proxyfactory.factory_class">
     NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle
   </property>
 </session-factory>
</hibernate-configuration>

Application configuration

The configuration for the Atomia Billing Mail Dispatcher is placed into the mailDispatcherConfiguration section of the application configuration. Here is a complete list of configuration properties:

  • TimerInterval – interval (in seconds) for checking whether there are unsent messages in the queue.
  • mailPlugin element:
    • fullClassName – fully qualified type name of the plug-in used for sending e-mail messages
    • host – hostname of the mail server
    • port – port number for the SMTP service on the mail server
    • username – username for logging into the mail server
    • password – password for logging into the mail server
    • ssl – value indicating whether to use SSL or not (true or false)
    • dispatcherEmailAddress – sender e-mail address
    • dispatcherReplyToEmailAddress – reply-to e-mail address for outgoing messages
    • bccEmailAddressesList – list of the comma-separated e-mail addresses that receive a blind carbon copy of all outgoing messages
    • useResellerDispatcherEmailAddresses – dispatcher email address and dispatcher reply-to email address from reseller configuration in AtomiaBilling database
  • SMSPlugin element
    • fullClassName – fully qualified type name of plug-in used for sending SMS messages.
    • url – url of the service used for sending of SMS mesages
    • username – username for logging into the SMS service
    • password – password for logging into the SMS service
    • originatorType – type of the originator (numeric or alpha)
    • originator – sender identification

Here is an example of the Atomia.Biling.Core.MailDispatcher.Properties.Settings section for Atomia Billing Mail Dispatcher:

<mailDispatcherConfiguration xmlns="atomia.billing.services.maildispatcher" timerInterval="30">
 <mailPlugin fullClassName="Atomia.Billing.Plugins.MessagingPlugins.Email.MailSenderSmtpPlugin, Atomia.Billing.Plugins.MessagingPlugins.Email"
   host="smtp.foobar.com" port="28" username="foobar"
   password="********" ssl="true"
   dispatcherEmailAddress="[email protected]"
   dispatcherReplyToEmailAddress="[email protected]"
   bccEmailAddressesList="" 
   useResellerDispatcherEmailAddresses="false" />
 <smsPlugin fullClassName="Atomia.Billing.Plugins.MessagingPlugins.Sms.SmsSenderCellsyntPlugin, Atomia.Billing.Plugins.MessagingPlugins.Sms"
   url=" https://sms.services.com/sms.php" username="foobar" password="********"
   originatorType="alpha" originator="FooBar" />
</mailDispatcherConfiguration>

Was this helpful?