sendAlert functional