def send_created_incident_email(admin, incident): receiver_email = admin.email message = get_incident_was_created_message(receiver_email=receiver_email, incident=incident) send_email(receiver_email=receiver_email, message=message)
def send_reservation_deleted_email(reservation): receiver_email = reservation.owner.email message = get_reservation_deleted_message(reservation=reservation) send_email(receiver_email=receiver_email, message=message)
def send_created_ticket_email(admin, ticket): receiver_email = admin.email message = get_ticket_created_message(receiver_email=receiver_email, ticket=ticket) send_email(receiver_email=receiver_email, message=message)
def send_accepted_ticket_email(ticket): receiver_email = ticket.owner.email message = get_accepted_ticket_message(ticket=ticket) send_email(receiver_email=receiver_email, message=message)
def send_created_user_email(user, password): receiver_email = user.email message = get_user_created_message(user=user, password=password) send_email(receiver_email=receiver_email, message=message)