Send Deephaven Data by Email

Warning

Legacy documentation: This documentation applies to Legacy Deephaven Enterprise only and does not apply to Core+.

You can send a report with Deephaven tables and charts by email using the reports plugin.

Caution

The query's host must be able to talk to the outgoing SMTP host or SMTP relay on your network.

If you want to use other libraries such as Javax Mail or Apache Commons Mail (both of which are included in a Deephaven installation), you can easily create an HTML representation of a Deephaven table using the TableTools.html method.

If you want to include a Deephaven chart in your email, the chart's image may show as empty or incomplete in the email if you do not wait for the chart to finish saving. The following overload of save will block the worker thread until the chart is fully written to disk:

The following example query uses the Javax Mail package to send an email with inline tables and charts: