in reply to Add Subject and timestamp to email

You need to have a second newline after your headers. Try:
$smtp->datasend("To: receipient address"\n"); $smtp->datasend("From: sender address\n"); $smtp->datasend("Subject : Analysis Summary\n"); $smtp->datasend("\n"); $smtp->datasend('c:\temp\analysis.csv'); $smtp->dataend; $smtp->quit;

Replies are listed 'Best First'.
Re^2: Add Subject and timestamp to email
by meenac (Initiate) on Dec 29, 2004 at 17:46 UTC

    Dear friedo,

    Thank you for your suggestion and it worked for
    adding the subject.
    Now, I need to add timestamp to the email.
    Any Suggestions?

    thanks.