G'day perlpearls,

Welcome to the monastery.

I agree with derby's comments above. I was interested to see how this might be achieved with MIME::Lite so I ran some tests. Having now seen your subsequent response, I realise that this isn't what you were after; however, someone might find it useful.

Here's my test code:

$ perl -Mstrict -Mwarnings -e ' use utf8; use MIME::Lite; package MIME::Lite::IO_Handle { no warnings "redefine"; sub print { my $self = shift; binmode $$self => ":utf8"; print {$$self} @_; } }; MIME::Lite::->new( To => "ken", From => "ken", Type => "text/plain; charset=utf8", Subject => "\x{263a} Happy days!", Data => "Testing 1 2 3", )->send; '

Notes:

Here's the mail that arrived:

$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/ken": 1 message 1 new
>N  1 ken@ganymede.localho  Thu Jun  6 11:21  19/638   "☺ Happy days!"
?
Message 1:
From ken@ganymede.localhost  Thu Jun  6 11:21:44 2013
X-Original-To: ken
Delivered-To: ken@ganymede.localhost
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=utf8
MIME-Version: 1.0
X-Mailer: MIME::Lite 3.029 (F2.84; T1.38; A2.12; B3.13; Q3.13)
Date: Thu, 6 Jun 2013 11:21:44 +1000
To: ken@ganymede.localhost
From: ken@ganymede.localhost
Subject: ☺ Happy days!

Testing 1 2 3

? 

-- Ken


In reply to Re: Email Subject with Icon by kcott
in thread Email Subject with Icon by perlpearls

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.