this is how when I need to send email gives me error. But the mistake that since gives me is this:
An asynchronous operation cannot be started at this tim
You can also try to define your async option inside a separate thread. I believe that you already have inserted the async tag in your page. And if everything is okay then try to put your code in below block.
this.Page.RegisterAsyncTask(new PageAsyncTask(async ctoken => {
var result = await SomeOperationAsync(ctoken);
// result operations.
}));