diff --git a/setup.py b/setup.py index b577414..8e9843a 100644 --- a/setup.py +++ b/setup.py @@ -38,8 +38,8 @@ }, keywords=["gis"], install_requires=[ - "requests~=2.31", - "sendgrid~=6.11", + "requests==2.31", + "sendgrid==6.*", ], extras_require={ "tests": [ diff --git a/src/supervisor/example.py b/src/supervisor/example.py index 9c3e1ee..98c8074 100644 --- a/src/supervisor/example.py +++ b/src/supervisor/example.py @@ -36,10 +36,10 @@ #: Specify the email server and addresses email_settings = { - "smtpServer": "send.state.ut.us", + "smtpServer": "outgoing.smtp.server", "smtpPort": 25, - "from_address": "noreply@utah.gov", - "to_addresses": "jdadams@utah.gov", + "from_address": "noreply@example.com", + "to_addresses": "recipient@example.com", "prefix": f"Example on {socket.gethostname()}: ", } @@ -52,14 +52,14 @@ #: Specify the to/from addresses, subject prefix, and sendgrid API key sendgrid_settings = { - "from_address": "noreply@utah.gov", - "to_addresses": "jdadams@utah.gov", + "from_address": "noreply@example.com", + "to_addresses": "recipient@example.com", "prefix": f"Example on {socket.gethostname()}: ", "api_key": secrets.SENDGRID_API_KEY, } #: Instantiate a new SendGridHandler and register it with our Supervisor - sim_sup.add_message_handler(SendGridHandler(sendgrid_settings, "agrc-supervisor")) + sim_sup.add_message_handler(SendGridHandler(sendgrid_settings, "ugrc-supervisor")) #: Send a message with both a directory attachment and a single file attachment message = MessageDetails()