Products | Versions |
---|---|
Spotfire Automation Services | All Versions |
This article describes the steps to configure the TIBCO Spotfire Automation Services configuration file to run the "Send Email" task using Gmail as the SMTP server.
config export-service-config --capability=AUTOMATION_SERVICES --deployment-area=Production3) Open the configuration "Spotfire.Dxp.Worker.Automation.config" and search for following section and make the following changes useTls=true, enter username and password. After the changes it should resemble something as follows.
<smtp useTls="true"> <authentication useWindowsDefaultCredentials="false" username="user@gmail.com" password="secretpassword"/> <certificates useCertificates="false" storeLocation="LocalMachine" storeName="My" serialNumber=""/> </smtp>4) Search for the following in config file and replace "mailserver.example.com" with "smtp.gmail.com" and "SpotfireAutomationServices@example.com" with a from email address which could be yours. In the end it should look as follows.
<!-- SMTP Host for Email Notification --><add key="Spotfire.Automation.SendMail.SMTPHost" value="mailserver.example.com"/> <!-- From Address for Email Notification --><add key="Spotfire.Automation.SendMail.FromAddress" value="SpotfireAutomationServices@example.com"/> Example:- <add key="Spotfire.Automation.SendMail.SMTPHost" value="smtp.gmail.com"/> <add key="Spotfire.Automation.SendMail.FromAddress" value="user@gmail.com"/>
config import-service-config --config-name=ServiceConfiguration
config set-service-config --service-id=value --config-name=ServiceConfiguration7) Open the client and test the job with execute on server.
<authentication serverUrl="http://servername:port/" username=”enter the credentials here” <!-- serverUrl (Required): The url to the Spotfire Server "http://servername:port/" --> <!-- username: The spotfire user to authenticate with. --> <!-- password: The password to authenticate with. --> <!-- For Windows Authentication, set username and password blank or remove them. -->Example :
<authentication serverUrl="http://mytss:8080/" username="as1" password="secret">
<smtp useTls="true"> <authentication useWindowsDefaultCredentials="true" username="user@gmail.com" password="secretpassword"/> <certificates useCertificates="false" storeLocation="LocalMachine" storeName="My" serialNumber=""/> </smtp>
<!-- SMTP Host for Email Notification --><add key="Spotfire.Automation.SendMail.SMTPHost" value="mailserver.example.com"/> <!-- From Address for Email Notification --><add key="Spotfire.Automation.SendMail.FromAddress" value="SpotfireAutomationServices@example.com"/> Example: <add key="Spotfire.Automation.SendMail.SMTPHost" value="smtp.gmail.com"/> <add key="Spotfire.Automation.SendMail.FromAddress" value="user@gmail.com"/>