Now sending to mail works fine