Ragazzi questo è lo script scemo per mandare le mail da aspx!
codice:
	
string to = Request.Form["to"];
string oggetto = Request.Form["object"];
string testo = Request.Form["testo"];
	
MailMessage mail = new MailMessage();
mail.From = "info@vicedominiavvocatofrancesco.it";
mail.To = to;
mail.Subject = oggetto;
mail.Body = testo;
mail.BodyFormat = MailFormat.Text;
SmtpMail.Send(mail);
questo è nel file web.config
codice:
<system.net>
    <mailSettings>
      <smtp from="***@***.it">
        <network host="smtp.***.it" userName="***" password="***" port="25"/>
      </smtp>
    </mailSettings>
  </system.net>
e questo è l'errore:
codice:
 At least one recipient is required, but none were found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: At least one recipient is required, but none were found.


Source Error:

Line 17: 	mail.Body = testo;
Line 18: 	mail.BodyFormat = MailFormat.Text;
Line 19: 	SmtpMail.Send(mail);
Line 20: 	Response.Redirect ("esitoInvioEmail.asp");
Line 21:
che cosa è successo?