mrguy123 has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone have any idea how I can "tell" the subject it is also under utf-8?#!/usr/bin/perl use strict; use warnings; use Net::SMTP; my $SMTP_HOST = 'localhost'; my $from = 'aaa@hotmail.com'; my $to = 'bbb@gmail.com'; my $msg = "MIME-Version: 1.0\n" . "Content-Type: text/plain; charset=UTF-8\n" . "Content-Transfer-Encoding: 8bit\n" . "From: $from\n" . "To: $to\n" . "Date: Sun, 23 Mar 2008 15:47:22 +0200\n" ##the subject . "Subject: ä¸åç©æµä¸éè´èåä¼\n\n" ##the body ."ä¸åç©æµä¸éè´èåä¼\n"; #Creating the SMTP object my $smtp = Net::SMTP->new( $SMTP_HOST,'Debug' => 1); #Sending the data $smtp->mail($from); $smtp->recipient($to); $smtp->data ($msg); $smtp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encoding Mail Subject
by moritz (Cardinal) on Mar 23, 2008 at 15:53 UTC | |
|
Re: Encoding Mail Subject
by linuxer (Curate) on Mar 23, 2008 at 15:21 UTC | |
by mrguy123 (Hermit) on Mar 23, 2008 at 15:42 UTC | |
by alexm (Chaplain) on Mar 23, 2008 at 20:48 UTC | |
|
Re: Encoding Mail Subject
by oko1 (Deacon) on Mar 23, 2008 at 15:44 UTC | |
by mrguy123 (Hermit) on Mar 23, 2008 at 15:58 UTC | |
by eserte (Deacon) on Mar 23, 2008 at 22:49 UTC |