March 2025
Intermediate to advanced
472 pages
12h 10m
English
As we mentioned above, the purpose of mailboxes is to allow us to execute code on every email we receive. Because emails come in whenever the sender sends them, we’ll need to store the details of a customer support request somewhere for an administrator to handle later. To that end, we’ll create a new model called SupportRequest that will hold the relevant details of the request, and have the process method of SupportMailbox create an instance for each email we get (in the final section of this chapter, we’ll display these in a UI so an admin can respond).
We want our model to hold the sender’s email, the subject and body of the email, and a reference ...
Read now
Unlock full access