perl script to send email with attachments
Posted on 2007-07-31
I have a folder of .pdf files that are created everyday
I need a script that will send an email with these files as attachments.
C:\Documents and Settings\jMcgill\Desktop\Reports\TradeReports\BidAskSpreads.pdf
C:\Documents and Settings\jMcgill\Desktop\Reports\TradeReports\IntradayTrades.pdf
C:\Documents and Settings\jMcgill\Desktop\Reports\TradeReports\TradesByTypeForPeriod.pdf
I want the script to check if files are new, ie modified today, and if so send the email.
The subject should be "TradesFor$YesterdayDate"