email functionality without external client