Using SMTP on a Function App API
Ho, Keith D
120
Reputation points
When I run the code below through that's on my API call, the code stops at the smtp_connection part. I'm able to run the API locally but when it is deployed on the Function App, it doesn't run through the smtp_connection line. Are there any settings I need to set up to allow this to go through?
smtp_server = os.getenv("SMTP_SERVER")
smtp_port = 25
smtp_connection = smtplib.SMTP(smtp_server, smtp_port)
Sign in to answer