Monthly Archives: February 2014

Net::SMTP, authentication and Unicode/UTF-8 email sending from Perl

How to send email from Perl using Net::SMTP, authentication and Unicode/UTF-8 encoding? Here is minimalistic and tested code example: #!/usr/bin/perl -wuse strict;use Net::SMTP;# needed for authenticationuse Authen::SASL;use utf8;use Encode;use MIME::Base64;my $debug = 0;# SMTP credentialsmy $smtp_host = ‘smtp.example.com';my $smtp_user = … Continue reading

Posted in Non-Java | Leave a comment