note 30704 added to ref.mail

From: Date: Wed, 26 Mar 2003 09:09:46 +0000
Subject: note 30704 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-45839@lists.php.net to get a copy of this message
I have been trying for several hours to attach a file to my email form. I was able to attach a file that is present in the www root directory easily. I viewed the mail and the attachment. however, when i try to attach a file from my PC I get an error. If somebody would help me in this since in all the above notes, I didn't find any note that states how should the path of a file found on the user's PC be written to be attached to a file. I am trying to write the following: <? ... $attachment = "c:\\resume.doc"; $newmail = new CMailFile($subject,$to,$from,$message,$attachment,$mimetype); $newmail->sendfile(); ?> Any help would be appreciated Thank u in advance -- http://www.php.net/manual/en/ref.mail.php http://master.php.net/manage/user-notes.php?action=edit+30704 http://master.php.net/manage/user-notes.php?action=delete+30704 http://master.php.net/manage/user-notes.php?action=reject+30704

« previous php.notes (#45839) next »