Skip to content

Backend: Sending Emails #147

@elizabethfoster02

Description

@elizabethfoster02

Purpose
When we want to be able to notify admin when a user edits a shift. Send an email if a user cancels/requests/approves a shifts. Some example phrasings for the emails are included below. Or at least look into feasibility

SMTP settings and info for outlook

TODO

  • Claim this ticket by adding your name and moving to "In Progress"
  • Get updated with the codebase
    • git checkout dev
    • git pull
    • THEN create a new branch as per usual
    • npm install (this updates your dependencies)
    • npm run dev
  • Send an email in the case of:
    • Cancelation
      • To all admin: "[Employee name] is unable to make their shift on [date/time]. The shift is now available for other employees to pick up."
      • To the employee who canceled the shift: "You have canceled your shift on [date/time]. The shift is now available for other employees to pick up."
    • Pending section
      • To all admin: "[Employee name] has requested the shift on [date/time]. Approve this shift to assign it to [employee name]."
      • To the employee who requested the shift: "You have requested the shift on [date/time]. A coordinator will approve or cancel this request."
    • Pending => Approved shift
      • To the employee whose shift was approved: "Your request for the shift on [date/time] has been approved."
    • Pending => Canceled shift
      • To the employee whose shift was rejected: "Your request for the shift on [date/time] has been rejected."
  • Create a PR for this ticket
  • Move this ticket into "Ready for Review"

Testing

  • Desktop

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions