> Hi! Howdy! I second Pablo's question. > > Im sending mails now :-), but Im a little confused, in some > mails I need to > send an attachment and in others no, the same its the the > ctype of the > messages (some employees doesnt like html messages and others > yes). However I > have my message loaded in a scalar variable, the point is.. > > When to use SendLineEnc and When to use SendEnc, Im confused > about the > description and use (and yes, I have read > http://search.cpan.org/author/JENDA/Mail-Sender-0.8.06/Sender.pm). > > I would like to know if Im doing fine: > > For Attachments: > $sender = new Mail::Sender ({ > smtp => '192.168.1.1', > from => 'Pablo <[EMAIL PROTECTED]>', > priority => 1, > debug => 'errors.txt', > to => '[EMAIL PROTECTED]', > subject => $subject, > }) or die("$Mail::Sender::Error\n"); > > $sender->Open({ > ctype => 'text/html; charset=iso-8859-1', (in case Im > sending an html > messsage, if not, I change html for plain, right?). > encoding => '7bit', (its ok to send it like 7bit?) > }); > > $sender->SendLineEnc($m); ($m, its the name of the scalar > variable that > contains the message). > > $sender->Attach({ > file => '/home/unmada/Programacion/Perl/ENV258z.ZIP', > ctype => 'text/plain; charset=iso-8859-1', > encoding => 'Base64', > disposition => 'attachment, > }) or die("$Mail::Sender::Error\n"); > > $sender->Close(); > > Now, Im doing fine in sending it like SendLineEnc?. > > Now, for sending messages without Attachments: > > $sender = new Mail::Sender ({ > smtp => '192.168.1.1', > from => 'Pablo <[EMAIL PROTECTED]>', > replyto => 'Arnold S. <[EMAIL PROTECTED]>', > priority => 1, > boundary => 'Este-es-un-mensaje-de-puntosclub', > debug => 'errores.txt', > to => '[EMAIL PROTECTED]', > subject => $subject, > }) or die("$Mail::Sender::Error\n"); > > $sender->Open({ > encoding => '7bit', > ctype => 'text/html; charset=iso-8859-1', > }); > > $sender->SendLineEnc($m); > > $sender->Close(); > > In few Words: > > 1. Is it correct to send the message in 'SendlineEnc'? in > both cases? 2. In the encoding of the message, Im doing fien > sending it like 7bit? > > Thanks! > Pablo > -- > Pablo Fischer Sandoval ([EMAIL PROTECTED]) > http://www.pablo.com.mx > http://www.debianmexico.org GPG > FingerTip: 3D49 4CB8 8951 > F2CA 8131 AF7C D1B9 1FB9 6B11 810C Firma URL: > http://www.pablo.com.mx/firmagpg.txt > > -- > To unsubscribe, > e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]