in reply to MIME::Lite behaving strange
First of all, 'use strict' does not work if you put a '#' before it
I tried your code with my values for mailserver, recipient etc., but had to change my $from="bla@xyz"; to my $from='bla@xyz'; because if you use an address with '@' in it, you better not interpolate the string.
Sent it and it worked. Attachement came in flawlessly (if I didn't use any special characters).
Could it be that in your csv file there are 8-bit characters, for example umlauts? Usually you need something like $part->attr('content-type.charset' => 'UTF-8'); to identify the right character encoding
You could look a bit closer at the garbage you are receiving (compare it to the source file) or post it here. In most cases it is not random garbage but gives broad hints about what happened to the source file. Was it base64 encoded or maybe packed?
UPDATE: added info about character encoding
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MIME::Lite behaving strange
by bar10der (Beadle) on Apr 01, 2009 at 15:18 UTC | |
by jethro (Monsignor) on Apr 01, 2009 at 15:38 UTC | |
by bar10der (Beadle) on Apr 02, 2009 at 07:39 UTC | |
by Anonymous Monk on Jul 22, 2015 at 06:03 UTC | |
by Anonymous Monk on Jul 22, 2015 at 06:07 UTC | |
by Anonymous Monk on Jul 22, 2015 at 06:58 UTC |