// examples/mailform.cc
// This file is part of libpbe; see http://decimail.org
// (C) 2004 Philip Endecott
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// MAILFORM
// --------
// This is a demonstration of the libpbe CgiParams and SmtpClient
// classes. It is a CGI program that implements the backend of a
// feedback form, or similar. The user completes a form on a web page
// and submits it to this script, which forwards its content as an
// email message.
// The important bits of the form look like this:
//
//
// feedback_received.html is the page that will be shown when the
// message has been sucessfully sent.
//
// You can also note from which page the user clicked on the "feedback
// form" page using a tad of javascript (which will not mess up
// non-javascript browsers):
//
// (Put this inside the