-
jaganat
Getting there.... but
I don't know how to insert the workflow variables 'nombre' and 'email' in the script:
import workflow nombre = workflow.get_variable('nombre') email = workflow.get_variable('email') import smtplib SERVER = "localhost" FROM = "me@myemail.com" TO = ["email"] # must be a list SUBJECT = "Bienvenido a Focus Integral" TEXT = "Apreciado 'nombre'" message = """\ From: %s To: %s Subject: %s %s """ % (FROM, ", ".join(TO), SUBJECT, TEXT) server = smtplib.SMTP(SERVER) server.sendmail(FROM, TO, message) server.quit()