email code from apache