Webform and Mailer.php not sending images
Posted on 2011-09-21
I'm using mailer.php (modifed) to send form data and an image file attachment
$FileName = $GUID . "." . $FileExtension;
$ImagePath = "images/" . $FileName;
$Attachment = chunk_split(base64_encode(file_get_contents($ImagePath)));
It works on one website but not another.
I've made sure the folder "images" exists however the image doesn't seem to show up in this folder (it does on the good website) so I suspect the issue is not with mailer.php but rather it is that the form is not uploading the image.
Does the copy move the image or copy it? there is no sign of the original in any other folder on either website.
The form was created in Dreamweaver here is the snippet
<td><div align="left">Upload Your Photo</div></td>
<input type="file" name="Image_File" id="Image_File" />
So why should it work on one website but not the other and what can I do to resolve this issue?