Click or drag to resize

Configuring An Email Server

ShipExec can provide self-serve password resets as well as other administrative tasks requiring email correspondence. These features require an SMTP server to be configured. To complete this configuration you will need an email address for the "from" field, the host name (or IP Address), the port number, and login information (if required).

Note Note
This procedure is performed in the ShipExecWcfService.exe.config file inside the \ShipExec\Core folder.

Configuring ShipExec to use an SMTP server.

  1. Open ShipExecWcfService.exe.config in Visual Studio or other text editor as an Administrator.

  2. Find the <system.net><mailSettings><smtp> element in the web.config file.

    Note Note
    If the element does not exist, add it to the web.config under the <configuration> element.
    XML
    <configuration>
    ...
      <system.net>
        <mailSettings>
           <smtp from="noreply@myCompany.com">
            <network defaultCredentials="false" host="smtp.myCompany.com"  port="25" userName="" password="" enableSsl="false" />
          </smtp>
        </mailSettings>
      </system.net>
    <configuration>

  3. Update the attributes in the <smtp> and <network> elements.

    from

    This attribute is required. Update the from attribute with the email address to indicate who the email is from. This will be the reply to address when the email is sent.

    defaultCredentials

    This attribute is optional. Set this to true to enable default credentials to authenticate with the SMTP server. Default is false.

    host

    This attribute is required. Update the host attribute with the host address for the SMTP server. e.g. smtp.company.com

    port

    This attribute is required. Update the port attribute with the port number for the SMTP server. e.g. 25

    userName

    This attribute is optional, depending on whether the SMTP server requires a user name and password to authenticate. Update the userName attribute with the user name needed to authenticate with the SMTP server.

    password

    This attribute is optional, depending on whether the SMTP server requires a user name and password to authenticate. Update the password attribute with the password needed to authenticate with the SMTP server.

    enableSsl

    This attribute is optional. Set this to true to enable SSL encryption when sending email through the SMTP server. Default: false

  4. Save the file.