Skip to content

Log trigger for sending emails #719

@baszoetekouw

Description

@baszoetekouw

See eg https://confluence.ia.surf.nl/spaces/coininfra/pages/305869835/Storing+2026-04-21+Uitgaande+email+SURFconext+platform+bounced+bij+Soverin

It is impossible to determine from the logs which user/client/etc triggered an invitation being sent. Or to trace any other API call to a specific role/user/client.

  • Add a log line to every mail send action. Log:

    • Type of email
    • Recipiant email
    • Triggering user (internal id + saml id) if sent by web ui
    • Triggering API key owner if send by API calls
    • Triggering Cron-Job name if sent because of cronjob
    • smpt result and message-id (if possible)
  • API calls should already be logged. Check if the API key owner is logged for each call.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions