Recent Changes - Search:

edit SideBar


Firefox 2
Get Thunderbird!

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 => 'oz984562514@kozgun.net', debug => 'debug.txt',
 		auth => "LOGIN", authid => 'oz984562514@kozgun.net', authpwd => "burayasifremgelir",
		ctype => 'text/html', encoding => 'ISO8859-9'
	};

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

Edit - History - Print - Recent Changes - Search
Page last modified on October 28, 2005, at 02:17 AM