From Wiki

Perl: SendHtmlEmailViaSmtpWithAttachment

SMPT sunucu �zerinden, HTML formatında iletili e-posta g�ndermek:

#!/usr/bin/perl 

#
# Bir SMTP sunucuya baglanarak HTML formatında iletili e-posta g�nderme.
# Kaynak: http://search.cpan.org/~jenda/Mail-Sender-0.8.10/Sender.pm
#

use strict;
use warnings;

use Mail::Sender;

my $sender = new Mail::Sender
	 {smtp => 'mail.kozgun.net', from => '[email protected]', debug => 'debug.txt',
 		auth => "LOGIN", authid => '[email protected]', authpwd => "burayasifremgelir",
		ctype => 'text/html', encoding => 'ISO8859-9'
	};

$sender->MailFile({to => '[email protected]',
	subject => 'Heyyo Test kedi',
	msg => "I'm <b>sending</b> you the list you wanted.",
	file => '/home/ozgun/bin/kedi.jpg'});

Retrieved from http://kozgun.net/wiki/pmwiki.php?n=Perl.SendHtmlEmailViaSmtpWithAttachment
Page last modified on October 28, 2005, at 02:17 AM