Click here to get back home

Mail::Sender: Encoding of subject

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Mail::Sender: Encoding of subject Kaj Hejer 11-17-2004
Posted by Kaj Hejer on November 17, 2004, 12:56 am
Please log in for more thread options
Hi!

I'm using Mail::Sender to send email, ref.
http://search.cpan.org/~jenda/Mail-Sender-0.8.10/Sender.pm

Almost everything work just fine :) except from the encoding of the
subject-field.

When I'm using some norwegian characters like "æ", "ø" or "å" in the
subject-field SpamAssassin complains about SUBJ_ILLEGAL_CHARS when I'm
receiving the emails.

I compose my email with something like the following:

eval {
(new Mail::Sender)
->OpenMultipart({
smtp => 'smtp.myserver.com',
to => $to,
from => $from,
subject => 'Testing (æøØÅ)',
multipart => 'mixed'
})

.....


}

Any ideas on how to change the perlcode so SpamAssassin will stop
complaining?

TIA!


-Kaj :)


Posted by Kaj Hejer on November 17, 2004, 1:19 am
Please log in for more thread options

> Hi!
>
> I'm using Mail::Sender to send email, ref.
> http://search.cpan.org/~jenda/Mail-Sender-0.8.10/Sender.pm
>
> Almost everything work just fine :) except from the encoding of the
> subject-field.
>


Problem solved! :-D

The solution was MIME::Words::encode_mimewords


-Kaj :)


Similar ThreadsPosted
Mail:Sender - HTML Mail with alternatives problem July 21, 2004, 6:44 pm
Mail::Sender problem August 17, 2007, 10:20 am
Mail::Sender, attachments and html together August 4, 2004, 9:48 am
Module problem - Can't locate Mail/Sender.pm in @INC October 22, 2004, 11:19 am
Net::SMTP error: Can't locate Mail/Sender.pm in @INC May 19, 2005, 10:33 am
Print Subject without characters Just Numbers using POP3Client. Please Help April 10, 2007, 11:27 pm
How to print just numbers includes in Subject using POP3Client Module. April 9, 2007, 9:18 pm
CGI.pm: encoding problems June 9, 2006, 10:53 am
Frontier::Daemon encoding question August 15, 2005, 10:40 am
CPAN make test error with XML::Encoding October 7, 2004, 11:28 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap