<@ULVA73B9P> I have an automation set up to send a...
# ask-marvin
k
@Marvin I have an automation set up to send an email, but it's resulting in "Automation action failed". Is the automation causing the email send to fail or is there an issue with using email notifications? Here's the output from the event:
Copy code
{
  "id": "9816c2da-41d0-42ee-aabd-3c251781b19f",
  "account": "cf7f2024-038d-4c0c-87b3-8ad9f1e282f1",
  "event": "prefect-cloud.automation.action.failed",
  "occurred": "2025-03-23T18:10:05.377Z",
  "payload": {
    "action_index": 0,
    "action_type": "send-email-notification",
    "invocation": "bd1dd69b-3528-4407-bb30-22c2e48340da",
    "reason": "Email notification failed: NotificationError()"
  },
  "received": "2025-03-23T18:10:05.377Z",
  "related": [],
  "resource": {
    "prefect.resource.id": "prefect-cloud.automation.b7f9a1b4-7ed4-4b91-bd66-48e1bff31d65",
    "prefect.resource.name": "Update CFI Snowflake",
    "prefect-cloud.trigger-type": "compound"
  },
  "workspace": "26ffaf55-b77d-4b2f-bf50-9331e8aed5c4"
}
m
The error message you're encountering, "Email notification failed: NotificationError()", suggests that the issue is related to the email notification itself rather than the automation setup. The
NotificationError
indicates a failure in sending the email, which could be due to several reasons such as misconfiguration in the email settings, network issues, or invalid recipient addresses. Here's what you can do: 1. Check Email Settings: Ensure that the email configuration in your Prefect automation settings is correct. This includes verifying SMTP server details, authentication credentials, and email addresses. 2. Network Issues: Make sure there are no network connectivity problems that could prevent the email from being sent. 3. Recipient Addresses: Verify that the recipient email addresses are valid and correctly formatted. 4. Review Prefect Documentation: You can refer to the Prefect Automations and Alerts documentation for more details on setting up and troubleshooting email notifications. If the issue persists, you may want to check for any related logs or error messages that provide more context on the failure. If you have a paid Prefect Cloud account, reaching out to their support might also be beneficial.