DoSomething / voting-app

☑ Voting app for DoSomething.org campaigns.
MIT License
6 stars 4 forks source link

Transactional Email #20

Closed DFurnes closed 9 years ago

DFurnes commented 10 years ago

From FFA (16): "As a voter, I want a confirmation/transactional email?"

International users (as indicated by their User model) should receive a transactional email after voting. We should be able to handle this through the Message Broker PHP Library Composer library.

deezone commented 10 years ago

This is dependent on the origin and the supplied contact details. A US based user should get an SMS while international gets an email. From the message brokers perspective it's a case of the application supplying the details in the payload of the message request sent to Message Broker.

I'd suggest that the logic that determines what method should be used to communicate / send messages to the user should be determined by this app. This will be a case of defining the routing_key value in the payload along with the details of the user.

Please poke me when you start to build this as I'd like to understand the process in the context of a Laravel app and connecting to RabbitMQ.

DFurnes commented 9 years ago

Closing this issue, since we'll be able to handle both SMS and email transactions through the same connection to the message broker.