i have this code for sputility but i dont know where to put it to send an email from my form the form includes text box to insert an email from active directory but i want the code to send an message to that email
if (!SPUtility.IsEmailServerSet(currentWeb)) SPUtility.TransferToErrorPage("Please configure the outgoing e-mail settings in Central Administration >