Handling other processes upon postback before processing TemplateMailer.
If you are using the TemplateMailer server control it maybe often necessary to perform other actions or functions upon PostBack prior to having the TemplateMailer process the mailing. Moreover, it may be necessary to return the user to a prior screen without having TemplateMailer process the email.
TemplateMailer easily accomondates .NET developers in this situation. To do so, setup TemplateMailer with all the desired settings and templates. Prior to compiling, set the Property SendMail to false. Within the code behind upon PostBack you'll process the desired functions. Once you are ready to proceed with the TemplateMailer functionality simply place the following code
SendTemplateEmail1.SendMail = True
SendTemplateEmail1.SendMail = true;