[Cascavel-pm] IG exibe código fonte e não o email em html

fernandolouis em terra.com.br fernandolouis em terra.com.br
Segunda Setembro 10 10:40:59 PDT 2007


Amigo, criei um teste_email.pl e fiz um teste (perl -w teste_email.pl)

Retornou o seguinte:

Out of memory!
Callback called exit.
END failed--call queue aborted

Porque será!??

[]s,
Fernando

----- Original Message ----- 
From: "Flavio Bei" <flaviobei em gmail.com>
To: "Cascavel Perl Mongers" <cascavel-pm em pm.org>
Sent: Thursday, September 06, 2007 6:27 PM
Subject: Re: [Cascavel-pm]IG exibe código fonte e não o email em html


exemplo de uso do Mime::Lite

#-----------------manda email
my $from_address = 'from em suaempresa.com.br';
my $to_address   = 'to em suaempresa.com.br';
my $subject      = "Título Email;
my $mime_type    = 'multipart/mixed';

my $msg = MIME::Lite->new(
        To      => $to_address,
        From    => $from_address,
        Subject => $subject,
        Type    => $mime_type
        );

        $msg->attach(Type => 'text/html',
        Data => qq{ <body>
        Aqui vai sua mensagem.
        <br>
        Com html inclusive
        <br>
        </body> }
);

$msg->send('smtp', 'mail');
#------------------ fim email


abraços

--
Flávio Bei
Webdesigner
(11) 8964 5315
_______________________________________________
Cascavel-pm mailing list
Cascavel-pm em pm.org
http://mail.pm.org/mailman/listinfo/cascavel-pm



Mais detalhes sobre a lista de discussão Cascavel-pm