HomeGuides
Submit Documentation FeedbackJoin Developer CommunityLog In

Configuring SMTP for email services

This topic describes email configuration in B2B Commerce Cloud.

B2B Commerce uses the System.Net.Mail.SmtpClient object, provided by the .NET Framework, to send email.

For Optimizely-Managed solutions, the SMTP settings will be configured for you by Optimizely. The application will use an external emailing service for all email communication.

📘

Note

Optimizely only allows a single SMTP in Cloud sites. You can have only one domain per instance of B2B Commerce that the emails can come from, so you have to select the one you want.

The following example configures the delivery format, delivery method, and from address for sending emails.

<configuration>
  <system.net>
    <mailSettings?
      <smtp deliveryMethod="network" deliveryFormat="SevenBit" from="[email protected]">
        <network
          host="localhost"
          port="25"
          defaultCredentials="true" />
      </smtp>
    </mailSettings>
  </system.net?
</configuration>

For more help configuring SMTP, see the official MSDN documentation, see https://msdn.microsoft.com/en-us/library/ms164240.aspx.

Cloud Note

For B2B Commerce Cloud, the SMTP settings will be configured for you by Optimizely. The application will use an external emailing service for all email communication.


Did this page help you?