Submitting forms / Sending E-Mail

I've managed to display layers via the YUI panels, but I'm having some trouble with the YUI Dialog:

I'd like to use the YUI Dialog to display a form. On klicking 'submit' the form should be sent to an e-mail adress. Displaying the form is no problem (same configuration as the panels), but how do I set up the form's recipient? Do I have to send the form to a separate file for further processing or can I handle the 'mailing' inside the main file itself?

Maybe there are any tutorials or examples on sending mails using the YUI? Thanks!

You're barking up the wrong tree. You need to learn about web development.

Well, thanks.

Originally Posted by Animal

Forms are submitted to a server which can process HTTP (google it) messages. You'll need to write a servlet, some PHP, or whatever .NET has to process the form, and send the email.

Yes, and that's what I'm asking for. With the YUI Dialog, it's possible to submit the form asynchronously (Dynamic XmlHttpRequest), so it's possible to process the form 'inside' the layer in which it is displayed. But I don't know (or where) to specify the recipients adress when I want to send the form via e-mail (and get a confirmation message displayed inside the layer after the mail has been sent).

On submit, the page is sent to itself, the form is processed and the e-mail is sent.

Unfortunately, the YUI dialog layer containing the form is hidden immediately on submit. On submit, I'd like keep the layer and want to display a short feedback message for the user (like "Your mail has been send. Click here to close this window.") instead of the form. Is this possible with the YUI extensions?