hello,
i'm having trouble understanding how to make an appender send an email? 
appearently, i'm suppose to make an appender based on
Log::Dispatch::Email*.  the problem is which one?  there are 4:

Log::Dispatch::Email
Log::Dispatch::Email::MailSendmail
Log::Dispatch::Email::MailSender
Log::Dispatch::Email::MailSend

also, how am i suppose to specify which smtp server to use?

from the man page of Log::Dispatch::Email::MailSend:
"Since Mail::Send is a subclass of Mail::Mailer, you can change how mail is
sent from this module by simply useing Mail::Mailer in your code before
mail is sent. For example, to send mail via smtp, you could do:
use Mail::Mailer 'smtp', Server => 'foo.example.com';"

well that doesn't compile in my code.  and furthermore it doesn't seem
clean.  when if i want multiple email appenders, using different smtp
servers?

i looked around the source code, and i saw Mail::Mailer's (which
Log::Dispatch::Email::MailSend is derived from) constructor takes a scalar
then a hash of arguments.  well that scalar allows you specify smtp.  the
problem is that Log::Log4perl::Appender's constructor provides no mechanism
for specifying that scalar when it constructs an instance of
Log::Dispatch::Email::MailSend.

this is all so confusing...why don't they give concrete examples in the
Log::Log4perl documentation?  arg.

thanks for the help.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to