The group mailer will have an HTTP POST /mail endpoint. When it receives a request to send email to the whole organisation, it puts an event onto the stream with a list of members.
[x] A POST /mail endpoint
[x] Reject (422?) an email sent to any address other than everyone, as that is the only supported recipient at the moment
[x] Subscribe to member-registered and member-deleted events, and maintain a list of all current member email address in the system
[x] Put a send-email command event onto the stream. The event should have:
[x] The sender (maybe hard-code this to 'admin@whatever` for now?)
[x] The list of recipients (member email addresses)
[x] The S3 bucket/object or ARN where the full email data can be found
See #160 for full context of the design.
The group mailer will have an HTTP
POST /mail
endpoint. When it receives a request to send email to the whole organisation, it puts an event onto the stream with a list of members.POST /mail
endpointeveryone
, as that is the only supported recipient at the momentmember-registered
andmember-deleted
events, and maintain a list of all current member email address in the systemsend-email
command event onto the stream. The event should have: