Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 85966 invoked by uid 500); 17 Mar 2003 13:43:14 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 85867 invoked from network); 17 Mar 2003 13:43:13 -0000 Received: from banquo.mc.duke.edu (HELO banquo.duhs.duke.edu) (152.16.199.51) by daedalus.apache.org with SMTP; 17 Mar 2003 13:43:13 -0000 Subject: Re: mail function To: cocoon-users@xml.apache.org X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: "Christopher Painter-Wakefield" Date: Mon, 17 Mar 2003 08:43:17 -0500 X-MIMETrack: Serialize by Router on Banquo/DUMC_Services/mc/Duke(Release 5.0.11 |July 24, 2002) at 03/17/2003 08:43:15 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N There is a sendmail logicsheet, not documented on the website. To use it is pretty simple, here's an example of what you might do with a POST from a message form: String from = request.getParameter("from"); String to = request.getParameter("to"); String cc = request.getParameter("cc"); String bcc = request.getParameter("bcc"); String subject = request.getParameter("subject"); String body = request.getParameter("body"); // the java sendmail interface apparently dislikes empty string addresses if ("".equals(cc)) { cc = null; } if ("".equals(bcc)) { bcc = null; } boolean success = true; try { from to cc bcc < sendmail:subject>subject < sendmail:body>message smtp.mydomain.com } catch (Exception e) { success = false; } if (success) { to } else { to } } HTH, -Christopher "boessem" de> cc: Subject: mail function 03/17/2003 05:11 AM Please respond to cocoon-users hi, i am quite new to cocoon, and try to write a registration using xsp. my question is, if there is a funktion like within php to automatically send a mail to me, with the registration informations. any comment would be helpfull. i searched for comments on this within the cocoon mailinglist archive, but couldn#t even find questions related to that subject. so if anyone knows links, to give me a brief overview how to archive a function like this, please mail. thanks and regards --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org