Your IP : 216.73.216.74


Current Path : /proc/thread-self/root/usr/share/doc/perl-Net-SSLGlue/examples/
Upload File :
Current File : //proc/thread-self/root/usr/share/doc/perl-Net-SSLGlue/examples/send-ssl-mail.pl

use strict;
use warnings;

use Net::SSLGlue::SMTP;
my $smtp = Net::SMTP->new( 'mail.gmx.net', 
	SSL => 1, 
	SSL_ca_path => "/etc/ssl/certs",
	Debug => 1 
) or die $@;
die $smtp->peerhost.':'.$smtp->peerport;
$smtp->auth( '123456','password' );
$smtp->mail( 'me@example.org' );
$smtp->to( 'you@example.org' );
$smtp->data;
$smtp->datasend( <<EOD );
From: me
To: you
Subject: test test

lalaal
EOD
$smtp->dataend;
$smtp->quit;