Sending Mail from Page Template
Hello! What is the most elegant way to send an email from a page template? My current solution is to call the send() method of the MailHost object from an "External Method". Is there a more direct way? Regards, Matthias Suencksen
On Tue, Sep 23, 2003 at 10:48:24PM +0200, Matthias Suencksen wrote:
Hello! What is the most elegant way to send an email from a page template?
My current solution is to call the send() method of the MailHost object from an "External Method".
Is there a more direct way?
Well, it works just as well from a Script (python) as from an external method. But there is nothing like dtml-sendmail, if that's what you mean. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's SEMI-INEFFICIENCY HERMIT! (random hero from isometric.spaceninja.com)
Paul Winkler wrote:
On Tue, Sep 23, 2003 at 10:48:24PM +0200, Matthias Suencksen wrote:
Hello! What is the most elegant way to send an email from a page template?
My current solution is to call the send() method of the MailHost object from an "External Method".
Is there a more direct way?
Well, it works just as well from a Script (python) as from an external method.
But there is nothing like dtml-sendmail, if that's what you mean.
On that note, I find it easy to call a DTML method (which contains a dtml-sendmail tag) from a Script (Python). DTML methods are generally more convenient for templating plain text formats such as email. - Michael http://www.michaelbernstein.com
participants (3)
-
Matthias Suencksen -
Michael Bernstein -
Paul Winkler