As early as possible - as it can take months to sort out funding, especially from a research body, as they often only have bi-annual deadlines for proposals. However, as a lot of universities essentially shut down over summer, your email may become lost in the many that the potential supervisor comes back to after his/her leave/time off from teaching. So it may be good to wait until 2nd week of september or something, so they will actually read it.