Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Email Text File

by PerlSufi (Friar)
on Jun 28, 2013 at 20:44 UTC ( #1041343=note: print w/ replies, xml ) Need Help??


in reply to Re: Email Text File
in thread Email Text File

I ended up saving it as an .xls file instead (since I needed to open it with that anyways) and changed the code to be

$report->attach( Type=>'application/vnd.ms-excel', Encoding=> 'base64', Path=> "/my/home/"."$out", Filename=> "$file"."_fixed.xls" );
I feel like it may have been something with the encoding? I'm not sure :\


Comment on Re^2: Email Text File
Download Code
Replies are listed 'Best First'.
Re^3: Email Text File
by runrig (Abbot) on Jun 28, 2013 at 21:01 UTC
    Please break the habit of the "Useless use of quotes", i.e. uslessly double quoting lone variables...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-28 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls