Re: for send an email part II

2005-12-29 Thread Rafael Morales
Yes, and I did that, my first choice was to use Mail::Sendmail, however it does 
not work fine with Yahoo, because the mails arrive empty. But I will play with 
the choices you have given me.

Thanks and regards !!!  


- Original Message -
From: "Jenda Krynicky" <[EMAIL PROTECTED]>
To: "Rafael Morales" <[EMAIL PROTECTED]>, beginners@perl.org
Subject: Re: for send an email part II
Date: Fri, 30 Dec 2005 00:21:52 +0100

> 
> From: "Rafael Morales" <[EMAIL PROTECTED]>
> > Well I have done this code, but the messages arrive in white :(,
> > anybody could help me with this please ???. Note: I do not know the
> > list of users for that reason I need multipart.
> 
> Please do not reinvent the wheel. Generating MIME encoded emails is
> not as trivial as it may seem at the first glance. Been there, done
> that! Use one of the several modules you can already find on CPAN:
> 
> MIME::Lite, Mail::Sender, MIME::Entity, ...
> 
> Jenda
> = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
> When it comes to wine, women and song, wizards are allowed
> to get drunk and croon as much as they like.
>   -- Terry Pratchett in Sourcery


-- 
___
Get your free email from http://mymail.bsdmail.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Re: Re: for send an email part II

2005-12-29 Thread Rafael Morales
I have added the "\n", however the mails are still arriving empty :(

I did

..
print MAIL "Subject: $Subject";
print MAIL "\n\n";<-- This line I have added

my $correo = <<"MAIL_BODY";

$boundary

.. Text here ..

$boundary

MAIL_BODY


 


- Original Message -
From: "Dr.Ruud" <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject:  Re: for send an email part II
Date:  Thu, 29 Dec 2005 22:07:52 +0100

> 
> Rafael Morales:
> 
> > Well I have done this code, but the messages arrive in white
> 
> There should be at least one empty line between header and body,
> so add a "\n" somewhere.
> 
> --
> Affijn, Ruud
> 
> "Gewoon is een tijger."
> 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>


-- 
___
Get your free email from http://mymail.bsdmail.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Re: for send an email part II

2005-12-29 Thread Dr.Ruud
Rafael Morales:

> Well I have done this code, but the messages arrive in white

There should be at least one empty line between header and body, 
so add a "\n" somewhere.

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




for send an email part II

2005-12-29 Thread Rafael Morales
Well I have done this code, but the messages arrive in white :(, anybody could 
help me with this please ???.
Note: I do not know the list of users for that reason I need multipart.

Regards

#!/usr/bin/perl
  use strict;
  use warnings;

my $msg_html = "message.html";
my $msg_txt = "message.txt";
open (MAIL, "|/usr/sbin/sendmail -t") || die "No hay acceso al binario 
sendmail\n";
open (HTML, "$msg_html") || die "Html no existe\t$!\n";
open (TXT, "$msg_txt") || die "Txt no existe\t$!\n";
my @html = ;
my @txt = ;

my $boundary = "=_" . time();
$boundary = '"' . '' . $boundary . '"';
my $To = '[EMAIL PROTECTED]';
my $FromMail = '[EMAIL PROTECTED]';
my $FromName = 'Sender Name';
my $Bcc = '[EMAIL PROTECTED]';
my $Subject = "Testing multipart";

print MAIL "MIME-Version: 1.0\n";
print MAIL "Content-Type: multipart/alternative; boundary= $boundary\n";;
print MAIL "From: $FromName<$FromMail>\n";
print MAIL "To: $To\n";
print MAIL "Cc: $Bcc\n";
print MAIL "Subject: $Subject\n";

my $correo = <<"MAIL_BODY";
$boundary
Content-Type: text/plain;
charset= "iso-8859-1"
Content-Transfer-Encoding: 8bit
@txt

$boundary
Content-Type: text/html;
charset= "iso-8859-1"
Content-Transfer-Encoding: quoted-printable
@html
$boundary
MAIL_BODY

print MAIL "$correo\n";


-- 
___
Get your free email from http://mymail.bsdmail.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: for send an email

2005-12-26 Thread tee

Sometimes your responses just crack me up, Chris !

Chris Devers wrote:


On Sat, 24 Dec 2005, Rafael Morales wrote:

 

I need to send an email to some clients, so I need to know if their 
mail client can accept html format or just text format. How can know 
that ???, I think that there is, some cpan module to do that however I 
haven't found it.
   



The mail sender has no way of knowing what client the recipient will be 
using, or what capabilities it will have. The polite thing is to only 
send plain text email ever, but we lost that fight years ago. 

The next most polite thing is to figure out how to send a multipart 
message with both HTML and plain-text components, so that the mail 
client can decide for itself, at the recipient's preference, whether to 
display the plain or formatted version of the message.


Figuring out how to do this is left as an exercise for the reader.

 

Could you help me please with this homwork ??? thank you very very 
much. Regards.
   



Ah, you've found the wrong list. You're looking for

[EMAIL PROTECTED]

Note that it may not exist yet.

Setting it up is left as an exercise for the reader. :-) 



 



Re: for send an email

2005-12-23 Thread Adriano Ferreira
On 12/23/05, Rafael Morales <[EMAIL PROTECTED]> wrote:
> I need to send an email to some clients, so I need to know if their mail 
> client can accept html format or just text format. How can know that ???, I 
> think that there is, some cpan module to do that however I haven't found it.

When you send email, you send it via/to a SMTP server. And then via
PO3/IMAP, they retrieve these messages, making difficult, to say the
least, that you know something about the clients used to read the
received messages. I think you need to get this information directly
from your clients -- even if extracted automatically. That is, if you
have a way to make them send a message to you, the message headers
usually contain the mail client identification - which can be mapped
to the probably acceptable formats. (Well, if they change clients,
that information goes outdated.)

Regards,
Adriano.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: for send an email

2005-12-23 Thread Chris Devers
On Sat, 24 Dec 2005, Rafael Morales wrote:

> I need to send an email to some clients, so I need to know if their 
> mail client can accept html format or just text format. How can know 
> that ???, I think that there is, some cpan module to do that however I 
> haven't found it.

The mail sender has no way of knowing what client the recipient will be 
using, or what capabilities it will have. The polite thing is to only 
send plain text email ever, but we lost that fight years ago. 

The next most polite thing is to figure out how to send a multipart 
message with both HTML and plain-text components, so that the mail 
client can decide for itself, at the recipient's preference, whether to 
display the plain or formatted version of the message.

Figuring out how to do this is left as an exercise for the reader.
 
> Could you help me please with this homwork ??? thank you very very 
> much. Regards.
 
Ah, you've found the wrong list. You're looking for

[EMAIL PROTECTED]

Note that it may not exist yet.

Setting it up is left as an exercise for the reader. :-) 


-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




for send an email

2005-12-23 Thread Rafael Morales
Hi list !!!.

I need to send an email to some clients, so I need to know if their mail client 
can accept html format or just text format. How can know that ???, I think that 
there is, some cpan module to do that however I haven't found it.

Could you help me please with this homwork ??? thank you very very much.
Regards.

-- 
___
Get your free email from http://mymail.bsdmail.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]