Share this page

# Email graphs using OTA API

This section provides an example of how to email a selected graph from the Analysis View using OTA API.

Note: To help ensure optimal system performance, we recommend that you trigger no more than 10 emails at a time.

'Connect to OTA

Set tdc = CreateObject("TDAPIOLE80.TDConnection")

tdc.InitConnectionEx "server url"

'Connect to project

tdc.ConnectProjectEx "domain name","project name","user name","password"

'Get analysis item

set oFactory = tdc.AnalysisItemFactory

SET obj = oFactory("item id") // analysis item id

'Send email

obj.mail "to email address", "cc to email address-optional", 0, "Email Subject", "Email contents"

'Logout and disconnect from server

tdc.logout

tdc.Disconnect

Back to top

https://admhelp.microfocus.com ALM 8942
Tips to improve your search results... ALM Help Center ALM Help Center ALM Help 16.00-16.0.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: