Support for Custom SMTP Configuration

Posted under setup on December 20 , 2018 by Swanand Nirgudkar

SheetKraft supports configuration of additional SMTP settings to facilitate automated email sending. The same can be configured in the Runner folder of the SheetKraftWeb instance on the server.

To setup the same create an extra config file in the Runner directory. Let us call it smtp_custom.config; the contents of which will be

<?xml version="1.0"?>
<smtp_custom from="sheetkraft@sheetkraft.com">
  <network host="smtp.gmail.com" port="587" username="sheetkraft@sheetkraft.com" password="password" enablessl="true"/>
</smtp_custom>

Now that the custom config file has been created, add the following emphasized XML in ActivityRunner.exe.config which is also located in the Runner folder in the following manner

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    .
    .
    .
    <sectionGroup name="mailSettings">
      <section name="smtp_custom" type="System.Net.Configuration.SmtpSection"/>
    </sectionGroup>
  </configSections>
  .
  .
  .
  <system.net>
    <mailSettings>
      <smtp configSource="smtp.config" />
    </mailSettings>
    <connectionManagement>
      <add address="*" maxconnection="256" />
    </connectionManagement>
  </system.net>
  <mailSettings>
    <smtp_custom configSource="smtp_custom.config"/>
  </mailSettings>
  .
  .
  .
</configuration>

Once set up, the custom SMTP configuration can be used to send emails similar to the default smtp usage by specifying it in the SendEmail function.



TAGGED:EmailSMTPConfigSendemail


Recent Posts


Re-Enable SheetKraft Add-In

October 03, 2019 byNidhisha Shetty

SheetKraft add-in may fail to load or start on your system. Follow one of the solutions given below…

Continue Reading

Applying patch to the website

September 13, 2019 byNidhisha Shetty

Following is the image of the SheetKraft website login page which shows its version number (2.12.2…

Continue Reading

Renewal of SheetKraft add-in license

August 20, 2019 byNidhisha Shetty

To renew the license, click on the About tab, and then click on License: The License window will…

Continue Reading

SheetKraft Web Setup

July 25, 2017 byKoustubh Moharir

Follow below steps to set up the SheetKraft Web framework on the Application/Database Servers: Check…

Continue Reading

Let's talk

Address

7th floor, Unit No. 701, C Wing,
Kailas Business Park, S. Veer Savarkar Marg,
Park Site, Vikhroli (W), Mumbai-400079.

 

Phone

+91 22 62362043

 

For General Queries & Technical Support

contact@quantumphinance.com

 

For Sale and Demos

sales@quantumphinance.com