Sympa::Mailer(3Sympa)

๐Ÿ’Œ Sympa::Mailer โ€” girl help, it's the sendmail whisperer

okay so bestie, welcome to Sympa::Mailer(3Sympa) โ€” the part of sympa 6.2.80 that takes your cute little messages and hands them off to sendmail. yes, it's giving postal worker but make it Perl. let's get into it ๐Ÿ’…


โœจ NAME โœจ

Sympa::Mailer โ€” stores messages so they can go to sendmail ๐Ÿ“ฎ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

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']);

see how easy that was?? main character energy fr fr โœจ


๐Ÿ’– DESCRIPTION ๐Ÿ’–

so basically, Sympa::Mailer implements the class that invokes sendmail processes and stores messages into them. it's the go-between. the middlewoman. the bestie who knows a girl who knows a girl at the post office ๐Ÿซถ

๐ŸŒธ Methods ๐ŸŒธ

  • instance ( ) โ€” the constructor, babes! creates a singleton instance of the Sympa::Mailer object. one of her, only her, periodt ๐Ÿ‘‘

Returns:

  • a brand new Sympa::Mailer instance, or undef if it didn't work out ๐Ÿ˜ญ
  • reaper ( [ blocking => 1 ] ) โ€” ๐Ÿ’€ DEPRECATED, girl. use "reap_child" in Sympa::Process instead.

Instance method. a non-blocking function that gets called by the main loop of sympa, task_manager, bounced etc., just to clean up the defuncts list by waiting on any processes and decrementing the counter. janitorial realness ๐Ÿงน

Parameter:

  • blocking => 1 โ€” operation would block.

Returns:

  • PID.
  • store ( $message, $rcpt, [ envid => $envid ], [ tag => $tag ] ) โ€” the moment we've all been waiting for โœจ

Instance method. makes a sendmail ready for the recipients given as an argument, and uses a file descriptor in the smtp table which can be imported by other parties. and before all that? she waits for number of children process < number allowed by sympa.conf. patience is a virtue bestie ๐Ÿ’…

Parameters:

  • $message โ€” the message to be sent.

the {envelope_sender} attribute of the message gets used as the SMTP "MAIL FROM:" field. no cap.

  • $rcpt โ€” scalar, scalarref or arrayref, for the SMTP "RCPT TO:" field. she's flexible like that ๐Ÿ’
  • envid => $envid โ€” an envelope ID of this message submission in the notification table. see also Sympa::Tracking.
  • tag => $tag โ€” TBD ๐Ÿ™ˆ (yes, literally just "TBD". iconic honestly.)

Returns:

  • filehandle on an opened pipe to output the SMTP "DATA" field. otherwise "undef" ๐Ÿ’€

๐ŸŽ€ Attributes ๐ŸŽ€

a Sympa::Mailer instance may have the following attributes, babes:

  • {log_smtp} โ€” if a true value is set, every single invocation of the sendmail process will be logged. she's documenting everything, like a true diary keeper ๐Ÿ““
  • {redundancy} โ€” a positive integer. if set, the maximum number of invocations of sendmail is divided by this value. math girlie behavior ๐Ÿ”ฅ

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

you're gonna wanna check out her friends too, they're all iconic:

  • Sympa::Message
  • Sympa::Process
  • Sympa::Spool::Listmaster
  • Sympa::Spool::Outgoing

๐ŸŒˆ HISTORY ๐ŸŒˆ

Sympa::Mailer, the rewrite of mail.pm, appeared on Sympa 6.2. glow-up of the century honestly ๐Ÿ’–


and that's the whole thing bestie!! Sympa::Mailer from sympa 6.2.80, dated 2026-10-19 โ€” she's stable, she's gorgeous, she's sending your mail. slay, no cap, periodt ๐ŸŽ€โœจ๐Ÿฆ‹๐Ÿ’…

๐Ÿ“ฆ where this page comes from