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. π«‘
π COPYRIGHT AND LICENSE π
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
- opensuse-leap 16.0: perl-Log-Dispatch 2.71-bp160.1.2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms