ePages 7.48.0 - DE_EPAGES/Core/API/Scheduler.pm

Package DE_EPAGES::Core::API::Scheduler

Functions for Scheduler.conf manipulation

@EXPORT_OK
GetMailParameters

Functions

GetMailParameters

GetMailParameters

Returns a hash with merged mail parameters from $Options (higher precedence) and Scheduler.conf (lower precedence).

Syntax
$MailParameters = GetMailParameters($Options);
Example
my $MailParameters = GetMailParameters(\%Options);
Input
$Options (ref.hash)
options keys:
  • ini - path to Scheduler.conf
  • section - section in Scheduler.conf
  • hostname - hostname to use
  • store - store to use
  • from - e-mail address
  • to - list of addressees, separated by [,;]
  • cc - list of addressees, separated by [,;]
  • bcc - list of addressees, separated by [,;]
  • subject - e-mail subject
  • content - e-mail body
  • file - content of file is e-mail body
  • descr - additional description
  • attachments - attachment files
  • SMTPServer
  • SMTPPort
  • SMTPLogin
  • SMTPPassword
Return
$MailParameters (ref.hash)
hash with mail parameters - {in Scheduler.conf}:
  • store - store to use - {MailStore}
  • from - e-mail address - {MailSender}
  • to - list of addressees, separated by [,;] - {MailRecipient}
  • cc - list of addressees, separated by [,;] {not in Scheduler.conf}
  • bcc - list of addressees, separated by [,;] {not in Scheduler.conf}
  • subject - e-mail subject - {not in Scheduler.conf}
  • content - e-mail body - {not in Scheduler.conf}
  • file - content of file is e-mail body - {not in Scheduler.conf}
  • descr - additional description - {not in Scheduler.conf}
  • attachments - attachment files - {not in Scheduler.conf}
  • SMTPServer - {SMTPServer}
  • SMTPPort - {SMTPPort}
  • SMTPLogin - {SMTPLogin}
  • SMTPPassword - {SMTPPassword}