in reply to setting smtp server in Log::Dispatch::Email::MailSendmail module

not sure about the module by itself, but when it's used with Log::Log4perl there's a way....

use Log::Log4perl; Log::Log4perl::init(\<<'_EOL_'); log4j.rootLogger = DEBUG, Email log4j.appender.Email = Log::Dispatch::Email::MailSendmail log4j.appender.Email.smtp = mail.mydom.com log4j.appender.Email.to = admin@mydom.com log4j.appender.Email.from = me@mydom.com log4j.appender.Email.buffered = 1 #log4j.appender.Email.subject = log4j.appender.Email.layout = Log::Log4perl::Layout::SimpleLayout _EOL_

i would think you could just add it the same way you add the to/from/subject info to a Log::Dispatch::Email object.

  • Comment on Re: setting smtp server in Log::Dispatch::Email::MailSendmail module
  • Download Code