Skip to content
Advertisement

How to Send Emails From Databricks

I have used the code from Send email from Databricks Notebook with attachment to attempt sending code from my Databricks Community edition:

I have used the following code:

JavaScript

As you can see the code is almost identical. However, when I run the code I get the following error:

JavaScript

Is this error also because I’m running on Databricks Community edition, as was the case in the previous question.

Advertisement

Answer

/FileStore/tables2/ is just a name of file that you want to send as an attachment. You need to put your file names there, or make the list empty if you don’t want to send attachments. It should be a local file, so on Azure use /dbfs/...., and on community edition – use dbutils.fs.cp to copy file from DBFS to local file system.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement