mail framework