mike-w
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by mike-w
-
-
Hi everybody,
I have a form with a file input and several other standard inputs (Name, email, location, etc) and am trying to create a getfile.php to upload a .jpg file to the server and then send the form data and the name of the image file to me by email.
The file upload is fine but I keep getting this error:
Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in D:\hshome\miwhel\bits-uk.com\uploads\getfile.php on line 97
Here is what I have so far: [url=http://www.bits-uk.com/getfile_no_email.txt]link[/url]
Here is line 97: mail($emailTo, $emailSubject, $emailBody, $emailHeader);
I can get it to work either way, upload works, email doesn't or email works, upload doesn't, but not both. any pointers on the code would be welcome.
Cheers. :-\
Upload Image file and form data
in PHP Coding Help
Posted
Everything is great now.
Cheers.