Forum Moderators: coopster
if(!$mail->Send())
{
echo "Message was not sent <br>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}else{
echo "Your mail was sent.";
//$f = '/hsphere/local/home/elderlaw/example.com/forms/VA'. " " .'Planning Brochure'. " " .'&'. " " .'Registration.pdf';
$f = "http://example.com/forms/VA". " " ."Planning Brochure". " " ."&". " " ."Registration.pdf";
$file = new file($f);
$file->Download();
[edited by: coopster at 8:36 pm (utc) on Jan. 30, 2008]
[edit reason] please use example.com in code [/edit]
Not being familiar with file.class.php, I did a search on it. I didn't dive terribly deep, but I found this:
"This package is meant to manipulate and handle files uploaded via HTML forms."
Are you sure the class you're using can be used to send files from server to a browser?