Mail-sending function provided