Attachments and SendMail()

From: Date: Tue, 08 Nov 2005 21:52:54 +0000
Subject: Attachments and SendMail()
Groups: php.general 
Request: Send a blank email to php-general+get-225321@lists.php.net to get a copy of this message
I have had to move an application for a client from a dedicated server to a shared server. On the dedicated server, the path to the attachements was an absolute address of "/home/sites/home/web/php/images/raceschd.pdf"; and all worked fine when I gave that as the location of the attachement:
    if ($Attachment) {
      $mail->AddAttachment($Attachment);
    }
Now I am not sure where/how to specify the location of the attachment. If anyone has experience with a shared server, I would appreciate any help. The URL to the site is http://64.202.163.82/s/f/y/sfycadmin/html/ And with FTP that is the base or root. I have tried putting the file in that directory, but SendMail() does not appear to connect to it. Todd

« previous php.general (#225321) next »