ONO::Lib::Mail::ToolBox

Functions

email_to_file();

Convert an email address to a valid, usable filename.

ONO::Lib::Mail::ToolBox->email_to_file( );
returns: $mail

file_to_email();

Convert a valid, usable filename to an email address, this only works if the filename contains _AT_ and _DOT_ strings.

ONO::Lib::Mail::ToolBox->file_to_email( );
returns: lc $mail

mail_queue_append();

Append a mail to the send queue, which will be driven by the CronSync service.

Supported timings can be found in ONO::Cron::CronSync::Bot, latest update:

1min 5min 10min 15min 30min 1hour 2hour 4hour

Each mail queue requires a config file, indicating the "Subject":

var/community/school/mail_queue/config/$queue.conf

ONO::Lib::Mail::ToolBox->mail_queue_append( $community, $timing, $queue, $sub, $email, $data );

Sub-Modules

none

Dependencies