You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jan Kyncl <ky...@pcv.cz> on 2001/11/07 22:39:58 UTC
Email content type headers
Hello,
I have a problem with using Embperl::Mail, all email are sent without content-type char-set info, that causes
bad recognition other than us-ascii characters. I have tried do something with mailheaders options but without success.
Thanks anyway.
S pozdravem / best regards
Jan Kyncl
Director
Prvni ceska virtualni Ltd.
Re: Email content type headers
Posted by Jan Kyncl <ky...@pcv.cz>.
Thanks Gerald,
Now It works perfect.
I wrote almost same solution but I forgot add 'MIME-Version: 1.0'.
S pozdravem / best regards
Jan Kyncl
Director
Prvni ceska virtualni Ltd.
----- Original Message -----
From: Gerald Richter <ri...@ecos.de>
To: Jan Kyncl <ky...@pcv.cz>; <em...@perl.apache.org>
Sent: Thursday, November 08, 2001 6:00 AM
Subject: Re: Email content type headers
> Hello,
>
> >I have a problem with using Embperl::Mail, all email are sent without
> content-type char-set info, that causes
> >bad recognition other than us-ascii characters. I have tried do something
> with mailheaders options but without success.
>
> You should be able to do this like so:
>
> HTML::Embperl::Mail::Execute({inputfile => 'mail.epl',
> to => $to,
> mailheaders =>
> [
> 'MIME-Version: 1.0',
> 'Content-Type: text/plain; charset="iso-8859-2"',
> ]}) ;
>
> Or is you want to have multiple format, send it as multipart MIME. I
didn't
> have tried it, but something like the following should work:
>
> mail.epl:
>
> ------=_NextPart_000_004E_01C167DD.213F1460
> Content-Type: text/plain;
> charset="iso-8859-2"
> Content-Transfer-Encoding: quoted-printable
>
> Here comes your Mailtext....
>
>
> ------=_NextPart_000_004E_01C167DD.213F1460
> Content-Type: text/html;
> charset="iso-8859-2"
> Content-Transfer-Encoding: quoted-printable
>
> Optional another format, Maybe a HTML formatted one here...
>
>
> ------=_NextPart_000_004E_01C167DD.213F1460--
>
>
>
> Now call this with
>
> HTML::Embperl::Mail::Execute({inputfile => 'mail.epl',
> to => $to,
> mailheaders =>
> [
> 'MIME-Version: 1.0',
> 'Content-Type: multipart/alternative;
> boundary="----=_NextPart_000_004E_01C167DD.213F1460"',
> ]}) ;
>
>
>
>
> -------------------------------------------------------------
> Gerald Richter ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
> E-Mail: richter@ecos.de Voice: +49 6133 925131
> WWW: http://www.ecos.de Fax: +49 6133 925152
> -------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Email content type headers
Posted by Gerald Richter <ri...@ecos.de>.
Hello,
>I have a problem with using Embperl::Mail, all email are sent without
content-type char-set info, that causes
>bad recognition other than us-ascii characters. I have tried do something
with mailheaders options but without success.
You should be able to do this like so:
HTML::Embperl::Mail::Execute({inputfile => 'mail.epl',
to => $to,
mailheaders =>
[
'MIME-Version: 1.0',
'Content-Type: text/plain; charset="iso-8859-2"',
]}) ;
Or is you want to have multiple format, send it as multipart MIME. I didn't
have tried it, but something like the following should work:
mail.epl:
------=_NextPart_000_004E_01C167DD.213F1460
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Here comes your Mailtext....
------=_NextPart_000_004E_01C167DD.213F1460
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Optional another format, Maybe a HTML formatted one here...
------=_NextPart_000_004E_01C167DD.213F1460--
Now call this with
HTML::Embperl::Mail::Execute({inputfile => 'mail.epl',
to => $to,
mailheaders =>
[
'MIME-Version: 1.0',
'Content-Type: multipart/alternative;
boundary="----=_NextPart_000_004E_01C167DD.213F1460"',
]}) ;
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org