Log::Di...ailSend(3)

πŸ’– NAME πŸ’–

okay bestie, so this is the Log::Di...ailSend(3) page from the User Contributed Perl Documentation, and it's literally about Log::Dispatch::Email::MailSend β€” a subclass of Log::Dispatch::Email that uses the Mail::Send module. main character energy fr fr. πŸ’…

✨ VERSION ✨

version 2.71 β€” that's the version, no cap. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

okay so the vibe check here is: you make a Log::Dispatch object, point it at the Email::MailSend output, and then log an emergency. iconic.

  use Log::Dispatch;

  my $log = Log::Dispatch->new(
      outputs => [
          [
              'Email::MailSend',
              min_level => 'emerg',
              to        => [qw( foo@example.com bar@example.org )],
              subject   => 'Big error!'
          ]
      ],
  );

  $log->emerg('Something bad is happening');

🌸 DESCRIPTION 🌸

This is a subclass of Log::Dispatch::Email that implements the send_email method using the Mail::Send module. periodt. πŸ’–

πŸŽ€ CHANGING HOW MAIL IS SENT πŸŽ€

Since Mail::Send is a subclass of Mail::Mailer, you can change how mail is sent from this module by simply use-ing Mail::Mailer in your code before mail is sent. yes bestie, before β€” timing is everything. ⏰

For example, to send mail via smtp, you could do:

  use Mail::Mailer 'smtp', Server => 'foo.example.com';

For more details, see the Mail::Mailer docs. iykyk. 🧚

🫢 SUPPORT 🫢

Bugs may be submitted at <https://github.com/houseabsolute/Log-Dispatch/issues>. please don't suffer in silence, bestie. 😭

πŸ”₯ SOURCE πŸ”₯

The source code repository for Log-Dispatch can be found at <https://github.com/houseabsolute/Log-Dispatch>. go look, it's giving open source royalty. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky <autarch@urth.org> β€” yeah, that's the author. 🫑

This software is Copyright (c) 2023 by Dave Rolsky. πŸŽ‚

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution. read it bestie, it's important. πŸ’€


okay that's the whole page! it's from perl v5.42.0, dated 2023-04-21, and the manual page is Log::Di...ailSend(3) β€” bye bestie, go log something iconic! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from