PDA

View Full Version : Email Attachement Issues


rob293221
10-20-2009, 10:21 AM
Hello, I am having issues getting a file attachment to mail along with the text portion of the email. I have tried all the things listed on the "How to Include Attachments with your email form" and am still having no luck. I get the email just fine, no attachemt. I have attached my files. Please let me know if you find anything. Thanks!!

Jason Byrnes
10-20-2009, 11:31 AM
First, lets see if the files are uploadinjg successfully.

change line 46:
$RecipientEmail = "webmaster@valleyheat.com";include("WA_Universal_Email/WAUE_application_1.php");

to:
die("File 1:".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]."".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]."<br>file 2:".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverDirectory"]."".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"]."<br>file 3:".$WA_DFP_UploadStatus["WA_UploadResult3"]["serverDirectory"]."".$WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"]);
$RecipientEmail = "webmaster@valleyheat.com";include("WA_Universal_Email/WAUE_application_1.php");


This should write he names of the uploaded files to the screen, please post back the results after testing.

rob293221
10-20-2009, 12:52 PM
This is what I got when I added that new line of code:

File 1:/home/valley/public_html/thegoodtube/TEMP_UPLOAD/
file 2:/home/valley/public_html/thegoodtube/TEMP_UPLOAD/
file 3:/home/valley/public_html/thegoodtube/TEMP_UPLOAD/

Jason Byrnes
10-20-2009, 01:06 PM
So this means the files are not being uploaded.


add the following code at line 1:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>


then go to the bindings panel and add the debug info binding from the WA Uploaded Files Global Status group.


You will need to remove the die statement I had you add before.

rob293221
10-20-2009, 01:15 PM
I added that code to line 1, then put the infro from the bindings group directly under that. When i tested it, it proceeded to send the email. no attachment..

Jason Byrnes
10-20-2009, 01:27 PM
Sorry, you need to remove the redirect from universal email so the page will not be redirected.

Also, the Debug info needs to go in the body of the document.

rob293221
10-20-2009, 03:37 PM
Here is what i got...

Warning: move_uploaded_file(/home/valley/public_html/thegoodtube/TEMP_UPLOAD/0.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/valley/public_html/thegoodtube/WA_DigitalFilePro/HelperPHP.php on line 176

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpAOqbRA' to '/home/valley/public_html/thegoodtube/TEMP_UPLOAD/0.jpg' in /home/valley/public_html/thegoodtube/WA_DigitalFilePro/HelperPHP.php on line 176

Warning: move_uploaded_file(/home/valley/public_html/thegoodtube/TEMP_UPLOAD/1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/valley/public_html/thegoodtube/WA_DigitalFilePro/HelperPHP.php on line 176

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpSDDXJ4' to '/home/valley/public_html/thegoodtube/TEMP_UPLOAD/1.jpg' in /home/valley/public_html/thegoodtube/WA_DigitalFilePro/HelperPHP.php on line 176

Warning: move_uploaded_file(/home/valley/public_html/thegoodtube/TEMP_UPLOAD/1-1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/valley/public_html/thegoodtube/WA_DigitalFilePro/HelperPHP.php on line 176

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbLxbWD' to '/home/valley/public_html/thegoodtube/TEMP_UPLOAD/1-1.jpg' in /home/valley/public_html/thegoodtube/WA_DigitalFilePro/HelperPHP.php on line 176
WA_DFP_AllUploadsDebug()

Jason Byrnes
10-20-2009, 04:02 PM
This means that the permissions on the folder:
/home/valley/public_html/thegoodtube/TEMP_UPLOAD/

do not include write permissions for all users.

You may be able to use Dreamweaver to change the permissions:

In the Files panel, select remote View.

Right Click the TEMP_UPLOAD folder and select Set Permisions.

Make sure to check Read and Write permissions for the Owner, User/group and Everyone users.

rob293221
10-20-2009, 04:24 PM
That did the trick, Thank you so much for your help! I so appreciate it!