generated from agrc/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
faab117
commit a13e7bd
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": "[email protected]", | ||
"from_address": "noreply@example.com", | ||
"to_addresses": "[email protected]", | ||
"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": "[email protected]", | ||
"from_address": "noreply@example.com", | ||
"to_addresses": "[email protected]", | ||
"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() | ||
|