Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MIME::Lite module to send e-mails

Status
Not open for further replies.

MikeMeilleur

Technical User
Feb 22, 2008
1
FR
Hello all,

I have a problem with the module MIME::Lite.

Here's my code :

Code:
#!/usr/bin/perl -w
 
use MIME::Lite;
 
$msg = MIME::Lite->build(
        From     => 'mike.meilleur@free.fr',
        To       => 'mike.meilleur@free.fr',
        Subject  => "Re: Hier soir !",
        Type     => 'TEXT',
        Encoding => 'quoted-printable',
        Data     => "C'était très bien, je te raconterai..."
    );
#$msg->attr("content-type.charset" => "iso-8859-15");
$msg->send('smtp', 'smtp.free.fr');

When i receive the mail, I cannot see the accents :

--> C'était trÚs bien, je te raconterai...

I try to find the solution on Cpan site, but it still doesn't work fine.

Could you help me please ?

Thanks,

(Sorry for my bad english, i'm french)
 
Are you sure the character set is correct, view the source of a regular email and see what character set is being set up?

--Paul

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top