Search notes:

Perl module Email::Stuffer

use warnings;
use strict;

use Email::Stuffer;
use Email::Sender::Transport::SMTP;

my $sender_mail_address    = shift;
my $smtp_server            = shift;
my $recipient_mail_address = shift;
my $subject                = shift;
my $filename               = shift;
my $auth_passwd            = shift;

Email::Stuffer ->
  from       ( $sender_mail_address     ) ->
  to         ( $recipient_mail_address  ) ->
  subject    ( $subject                 ) ->
# bcc        ( $blind_copy              ) ->
  text_body  ("Hi\n\nAttached is a file") ->
  attach_file( $filename                ) ->
  transport  ( Email::Sender::Transport::SMTP->new({
                 host             => $smtp_server,
               # port             =>  25,
                 sasl_username    => $sender_mail_address, # ?
                 sasl_password    => $auth_passwd })
             )
->send or die "sending of mail failed $!";
Github repository PerlModules, path: /Email/Stuffer/script.pl

See also

Emailing executables
Perl modules.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741108168, '18.222.71.13', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Email/Stuffer/index(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78