$subject = 'Check this out!'; #What you want to put in the subject line. $file = '/path/to/the/files/'; #path to where the text files are. $url = 'http://url/to/the/files/'; #url to the directory where the text files are. $link = 1; #1 to just send a link, 0 to send the file. $return = 'http://url/back/to/your/page/';