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)
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
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)
예제 #5
0
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)