use Sympa::Mailer; use Sympa::Process; my $mailer = Sympa::Mailer->instance; my $process = Sympa::Process->instance; $mailer->store($message, ['user1@dom.ain', user2@other.dom.ain']);
Sympa::Mailer implements the class to invoke sendmail processes and store messages to them.
Returns:
A new Sympa::Mailer instance, or undef for failure.
Instance method. Non blocking function called by: main loop of sympa, task_manager, bounced etc., just to clean the defuncts list by waiting to any processes and decrementing the counter.
Parameter:
Returns:
PID.
Parameters:
{envelope_sender} attribute of the message will be used as SMTP "MAIL FROM:" field.
Returns:
Filehandle on opened pipe to output SMTP "DATA" field. Otherwise "undef".
Sympa::Mailer instance may have following attributes:
Sympa::Alarm, Sympa::Bulk, Sympa::Message, Sympa::Process.
Sympa::Mailer, the rewrite of mail.pm, appeared on Sympa 6.2.