![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
02/01/2008, 19:29
|
| | Fecha de Ingreso: enero-2008
Mensajes: 3
Antigüedad: 17 años, 1 mes Puntos: 0 | |
Re: AYUDA, envio de emails con PERL Hola jferrero, he investigado en la web sobre Mail::Sender y autentificacion del SMTP y encontre esto, pero no me queda muy claro el asunto: http://perlenespanol.baboonsoftware.com/foro/about1783.html
Creo que especificamente esta es la parte de mi codigo que tengo que adaptar a alguna de esas funciones Mail::Sender o Net::SMTP pero en verdad no se como hacerlo, si alguien puede apoyar bienvenido.
Código:
my $msg = MIME::Lite->new(
Type => 'multipart/mixed' ,
From => ParseSpecial(FixAddr($fromaddr)),
To => ParseSpecial($to) ,
Content-Type => $typeHelper ,
Subject => ParseSpecial($subject) ,
Type => $send_type,
Encoding => "quoted-printable",
Data => $message
);
$msg->attr( "content-type.charset" => "ISO-8859-15" );
#$msg->build(Subject => ParseSpecial($subject) ,
# Data => $message ,
# From => ParseSpecial($fromaddr),
# To => ParseSpecial($to) ,
# Encoding => "quoted-printable" ,
# Content-Type => $typeHelper ,
# #Type => 'multipart/mixed'
# );
## print STDERR "Pasé por acá ABACO\n"; # debug
if ( $name ne "" ) {
$msg->attach(
Type => $mime->[0],
Encoding => $mime->[1],
Filename => $name,
Path => $path,
);
$msg->attr( "content-type.charset" => "ISO-8859-15" );
## print STDERR "Pasé por aquí ABA934\n"; # debug
}
MIME::Lite->send( 'sendmail', $mailprog );
$msg->send;
|