Blocks Catalog
Below is a list of Blocks available for registration in
prefect-email
.
To register blocks in this module to view and edit them on Prefect Cloud, first install the required packages, then
prefect block register -m prefect_email
load
method on Blocks, you must already have a block document saved through code or saved through the UI.
Credentials Module
Block used to manage generic email server authentication. It is recommended you use a Google App Password if you use Gmail.
To load the EmailServerCredentials:
from prefect import flow
from prefect_email.credentials import EmailServerCredentials
@flow
def my_flow():
my_block = EmailServerCredentials.load("MY_BLOCK_NAME")
my_flow()