Hi,
I am trying to create a skill that sends email to the user using the smtp library in python. The program works when i run it locally but its throwing error when i use it in a lambda function. below is the code:
msg = email.mime.Multipart.MIMEMultipart() msg['Subject'] = 'test' msg['From'] = 'abc@xyz.com' msg['To'] = 'abc@xyz.com' smtpserver = smtplib.SMTP("smtp.office365.com",587) smtpserver.starttls() smtpserver.login("abc@xyz.com", "123") smtpserver.sendmail("sender",'receiver', msg.as_string()) smtpserver.close()