cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Serverless Compute - Python - Custom Emails via SMTP (smtplib.SMTP(host_name)) - Any alternative?

Ramana
Contributor III

Hello Community,

We have been trying to migrate our jobs from Classic Compute to Serverless Compute. As part of this process, we face several challenges, and this is one of them.

We have several scenarios where we need to send an inline email via Python Code and then process to execute the rest of the code or make the job fail. We know that Databricks workflows have failure/success/threshold email functionality, but that is not helpful for my scenarios.

In Classic Compute, I can send the emails by using smtplib.SMTP(host_name)/

sendmail(), but when it comes to the Serverless, this is not working.

Is there an alternative to sending code in-line emails when we execute any job with Serverless Compute?

 

#SMTP

#Custom-Email-Functionality

#Python

#Serverless-Compute

#Workflows

Thanks
Ramana
1 REPLY 1

szymon_dybczak
Esteemed Contributor III

Hi @Ramana ,

What error do you get in serverless? Could you provide error message?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now