Email Record: Optimal investment and marketing strategies