NAME

PDK::Utils - Utility functions for PDK

VERSION

version 0.01

ABSTRACT

PDK::Utils provides a set of utility functions to simplify common operations within PDK.

DESCRIPTION

PDK::Utils provides a set of utility functions to simplify common operations within PDK. This module aims to offer developers convenient tools to reduce code duplication.

METHODS

new

# exmaple
my $utils = PDK::Utils::Email->new(%args);

Creates a new PDK::Utils::Email. Accepts the following parameters:

  • smtp

    SMTP server address.

  • port

    SMTP server port, default is 465.

  • username

    SMTP authentication username.

  • password

    SMTP authentication password.

  • from

    Sender email address.

  • subject

    Email subject.

send_mail

$utils->send_mail(to => 'recipient@example.com', subject => 'Hello', body => 'This is a test email.');

Sends an email. Accepts the following parameters:

  • to

    Recipient email address.

  • subject

    Email subject.

  • body

    Email content.

AUTHOR

WENWU YAN <968828@gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2024 WENWU YAN. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.