InstallationDeveloper Workstation Installation

Developer Workstation Installation

Configure the Mail Settings

  • Open the web.config of the Sana Commerce Starter Site project in VS2008
    (do the same for the 'web.config' file of the 'Sana.Commerce.BackOffice' project in VS2008);
  • Locate the sites section in the 'sanaCommerce' configuration section:
<sites defaultsite="Demoshop" contentProvider="SanaSqlContentProvider" SendMailToReportAddress="false" ReportAddress="YourEmail">
<site code="Demoshop" shopType="B2X">
        ...
</sites>
The ReportAddress value "YourEmail" must be changed to valid e-mail.

In the sites node, there is an attribute 'SendMailToReportAddress' that indicates if all e-mails sent by Sana Commerce (e.g. order confirmation e-mail) should be sent to a report address instead of the original targeted e-mail address. This can be useful in the development environment to make sure real customers do not receive test e-mails. When this option is set to true, enter the report e-mail address(es) in the 'ReportAddress' attribute of the sites node. Multiple e-mail addresses can be separated with the ';' symbol. Please note that the 'ReportAddress' attribute is the required field even if the option is not used!

  • Locate the 'mailSettings' configuration section under the 'system.net' node in the 'web.config' file of the Sana Commerce Starter Site project:
<system.net>
   <mailSettings>
       < smtp >
           <network host="YourSmtpServer" port="25" />
       </smtp>
   </mailSettings>
   <connectionManagement>
           <add address="*" maxconnection="100"/>
   </connectionManagement>
</system.net>
  • Change the host attribute in the network node to the mail server you are using. Also change the port number of this mail server when necessary.
You can configure the 'from' e-mail address and the address(-es) of recipients for the contact form in the webshop configuration page in the backoffice. For more info, please read this chapter. 
InstallationDeveloper Workstation Installation