Email message wrapper ripped from django