basically, you need to find a way to limit the search results to a manageable size to be able to send the emails in the time limit imposed by the server.
maybe try recordset paging on the results page.
Set the repeat region to limit to 30 or 40 records and add paging.
send the email on each page.