{ "summary": "Send an email (smtp and gmail)", "description": "Send an email using smtplib and in particular with a gmail account set with a [secure app password](https://support.google.com/accounts/answer/185833?hl=en).\n\nFor gmail the following smtp configuration set in resource would work:\n```json\n{\n \"host\": \"smtp.gmail.com\",\n \"password\": \"$var:u/user/your_app_password\",\n \"port\": 587,\n \"user\": \"youremail@gmail.com\"\n}\n```\nwhere you have set the variable `u/you/your_secure_password` as a variable containing the app password.", "schema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "required": [ "smtp_config", "to", "subject", "body" ], "properties": { "smtp_config": { "description": "", "type": "object", "default": null, "format": "resource-SMTP" }, "to": { "type": "string", "default": null, "description": "", "format": "" }, "subject": { "type": "string", "default": null, "description": "", "format": "" }, "body": { "type": "string", "default": null, "description": "", "format": "" } } }, "is_template": true, "lock": [ "anyio==3.5.0", "attrs==21.4.0", "certifi==2021.10.8", "charset-normalizer==2.0.12", "h11==0.12.0", "httpcore==0.14.7", "httpx==0.21.3", "idna==3.3", "python-dateutil==2.8.2", "rfc3986[idna2008]==1.5.0", "six==1.16.0", "sniffio==1.2.0", "windmill-api==1.5.0", "wmill==1.5.0" ] }