Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Email Text File

by runrig (Abbot)
on Jun 28, 2013 at 17:46 UTC ( #1041299=note: print w/replies, xml ) Need Help??


in reply to Email Text File

Path should be the full path to the file (not just the directory). Filename is the 'recommended filename' that it gets attached as, and you can omit that.

Also, I'm pretty sure you can just do $report->send('sendmail');.

Replies are listed 'Best First'.
Re^2: Email Text File
by PerlSufi (Friar) on Jun 28, 2013 at 18:12 UTC
    Thanks, runrig. I'm still getting problems sending it but I'll keep trying and post my code when I can
Re^2: Email Text File
by PerlSufi (Friar) on Jun 28, 2013 at 20:44 UTC
    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 :\
      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://1041299]
help
Chatterbox?
[LanX]: yep
[erix]: or Ctrl-U to view current html :P
[LanX]: name not id
[LanX]: id isn't approved AFAIK
[LanX]: name works
erix feels silly for having actually tested that contiguous values make no difference in CLUSTERing a table (At least, in postges)
[LanX]: Perl Monks Approved HTML tags
[LanX]: erix and his postguess ...
[erix]: (Grrres...)
[dabella12]: I have a problem install tK on CeontOs using perl 5.24

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-06-24 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (557 votes). Check out past polls.