Send Deephaven Data by Email

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 query uses the Javax Mail package to send an email with inline tables and charts: