Shyam
09/07/2021, 3:14 PMForbiddenError: HTTP Error 403: Forbidden
Mariia Kerimova
09/07/2021, 3:26 PMMariia Kerimova
09/07/2021, 3:53 PMpip install "prefect[sendgrid]"
), generated a sendgrid api key and ran this flow
from prefect import Flow
from prefect.tasks.sendgrid import SendEmail
sengrid_send_email = SendEmail(
from_email="<mailto:notifications@prefect.io|notifications@prefect.io>",
to_emails="<your@email>",
subject="Test Prefect Sendgrid Task",
html_content="<strong>and easy to do anywhere, even with Python</strong>",
sendgrid_api_key="<>"
)
with Flow("Sendgrid Flow") as flow:
sengrid_send_email()
flow.register(project_name="Examples")
Shyam
09/07/2021, 4:11 PMMariia Kerimova
09/07/2021, 4:26 PMShyam
09/07/2021, 4:36 PM