[Petal] Petal::Mail observations

William McKee william at knowmad.com
Thu Jan 15 05:52:27 GMT 2004


Hey JM,

I'm still twisting my brain around setting up Petal::Mail. I'm working
on a gui (Petal::Mail::Editor) but that project is on hold until I get
some other work out the door and learn more about parsing XML (I'm
thinking I'll be able to use the MKDoc::XML::TreeBuilder module to help
me with this).

On another note, I realized that I could probably use P::M to process my
email template then take the output of the process function and send it
to a module such as Net::SMTP. I've attached a diff that includes some
initial notes about this procedure. Please entertain my stupidity for
including notes about looking for an smtp setting. It's quite common in
modules that handle sending email and had me surfing around for about 10
minutes before I realized my foolishness.

Also, I noticed the docs for P::M 0.2 got borked at some point.  The
process function is defined 4 times. I didn't take on the redefinitions
of the process function as each one seems to have different info and may
be getting auto-generated or something from your end.

Thanks,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com
-------------- next part --------------
--- /home/william/perl/Petal-Mail-0.2/lib/Petal/Mail.pm	2004-01-06 13:24:52.000000000 -0500
+++ Mail.pm	2004-01-15 00:26:26.000000000 -0500
@@ -582,6 +582,20 @@
 Encode module's 'MIME-Header' encoding facility. 
 
 
+=head1 Petal::Mail & SMTP
+
+If you are looking for the SMTP setting as is common with other email modules,
+you can stop here. Because Petal::Mail uses the sendmail client to process
+outgoing, there is no need to set the smtp address since that should be
+properly configured on your system.
+
+Should you need to send your message from a system that does not have a
+sendmail client or is misconfigured, you can still use Petal::Mail. Instead of
+using the send function, you will gather the results of the process function
+and then send the output using a module such as L<Net::SMTP>.
+
+	META: Write code sample
+
 =head1 BUGS
 
 Probably plenty.


More information about the Petal mailing list