
July 17th, 2000, 01:11 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Write the info that you want in the attachment into a temporary file, then attach it to the e-mail (here's a thread on attachments). Example:
let's say your in the /home/site directory (just a random directory). Do this:
#######
open(FILE, "<attach.txt") | | print "$!";
print FILE $stuff;
close(FILE);
#######
$stuff is whatever you want to write to the file.
Then when you attach the file the path to the file is "/home/site/attach.txt". Write the part of the script to e-mail it off to you, then:
####
unlink('/home/site/attach.txt');
####
That will delete the temporary file from the system.
|