This howto will add you 5 email accounts extension package to your products

- On provisioning box: CREATE file if don't exist "C:\Program Files (x86)\Atomia\AutomationServer\Common\ProvisioningDescriptions\Transformation Files\ProvisioningDescription.PackageExtensions.xml"

- ADD text

<?xml version="1.0" encoding="UTF-8"?>
<provisioningDescription xmlns:xdt="">
<packageExtension name="MailAddon" xdt:Transform="Insert">
            <group maxCount="5" name="MailAccount">
              <service name="MailAccount" />
          <extends name="BasePackage" /> 
          <extends name="PremiumPackage" />
		<!-- other packages for which we want to allow extension -->


- On the Billing box: You have to change C:\Program Files (x86)\Atomia\BillingAPIs\BillingApi\Web.config,

(This should be done trough transformation file:

EDIT file "C:\Program Files (x86)\Atomia\BillingAPIs\BillingApi\Transformation Files\Web.examplenet.config")

FIND line <provisioningOrder provisioningService="MSSQLAddon" order="10" />

- ADD bellow it:

<provisioningOrder provisioningService="MailAddon" order="10" />

- FIND line <!-- Extensions -->

- ADD bellow it 

<package name="MailAddon" type="PackageExtension"> <!--package name-->
              <packageProperty key="MailAccount" /> <!--name of service to extend-->


- so at the end section looks like

<!-- Extensions -->

 <package name="MailAddon" type="PackageExtension">  


              <packageProperty key="MailAccount" />



         <package name="StatisticAddon" type="PackageExtension">


              <packageProperty key="CsAwstats" />





GOTO -> Add new product

Provisioning service -> (name of the extension, in this case MailAddon)

Product category -> Extra service

Rest of the fields are like on any other product.

SAVE changes

- On BCP box: EDIT file "C:\Program Files (x86)\Atomia\BillingCustomerPanel\bin\Transformation Files\Atomia.Web.Plugin.HostingProducts.dll.examplenet.config"

You have to change C:\Program Files (x86)\Atomia\BillingCustomerPanel\bin\Atomia.Web.Plugin.HostingProducts.dll.config

- ADD at the end of document 

<product id="ARTNUM" articalNumber="ARTNUM" productCategory="ExtraService" resourceKey="ARTNUM">  <!--where ARTNUM is Article number u used for product in Atomia Admin Panel GUI-->
		<customAttribute name="maximalproductvalue" value="10"/> <!--maximal number of times avilable to add extension-->
		<customAttribute name="minimalproductvalue" value="1"/>
		<customAttribute name="productvaluestep" value="1"/>
		<customAttribute name="productvalueunit" value=""/>
          <customAttribute name="packages" value="HST-GLDY|HST-GLDQ|HST-GLDM" /> <!--where HST-GLDY|HST-GLDQ|HST-GLDM is name of product which can be extended with this package (replace it with the ones u want)-->



- EDIT file "C:\Program Files (x86)\Atomia\BillingCustomerPanel\App_GlobalResources\Common.resx" (without transformation file)

- ADD at the end of file

<data name="ARTNUM" xml:space="preserve"> <!--where ARTNUM is Article number you used for product in Atomia Admin Panel GUI-->
   <value>Mail Extension 5</value> <!--text we want customer to see-->



CREATE ps1 script to recreate all config files and restart services

$items = Get-ChildItem -Path "C:\Program Files (x86)\Atomia\" -Filter "Recreate config files.lnk" -Recurse
foreach($item in $items)
	Start-Process $item.FullName
Get-Service AtomiaAutomation* | Stop-Service -PassThru
Get-Service AtomiaAutomation* | Start-Service -PassThru


EXECUTE script