close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email not sent after uploading

Thread began 6/29/2010 3:47 pm by info399547 | Last modified 6/30/2010 11:18 am by Jason Byrnes | 764 views | 6 replies |

info399547

Email not sent after uploading

I have tried every combination but i cannot get UE4 to email the details of an uploaded file to a given email address.
I have successfully coded the delivery of an email after a user registration

I have attached a zip file with the file coded by me and the one from webassist which resides in webassist > email

Cheers
Andrea

Attached Files
email after upload.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the upload_Email_lisa.php file your reference to the server file name is not correct:
<?php echo($_POST(strtolower($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]))) ?>


should be:
<?php echo($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ?>

Sign in to reply to this post

info399547

Hi Jason
thank for the suggestion but it still doesn't work. No variable with the file name is passed to the email, as you can see in the result below
I must have a separate file for the email body because the client might want to change the text in the future.

Any other suggestion to solve the issue?

Hello Lisa,

A new presentation has just been uploaded to the Scipt site.

The details are:
Author name: Sunglasses
Author surname: Sunglasses
Category: Evidence based practice
Country: Saint Helena

Title: Sunglasses
Description: Sunglasses

JPG file:
thumbs/
SWF file:
flash/
Do you want to authorise this presentation?
presentation_authorise.php?presentationID?103

Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshoot further, changer the following line:
$GoToPage = "thanks.php";

to:
$GoToPage = "";


so that the page will not be redirected after the email is sent.

Then add the following code at line 1 to turn on error reporting:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




next, on the bindings tap, expand the Uploaded Files Global Status group and add the Debug info binding to your page.

Post back the results of the debug info and any errors that may be reported.

Sign in to reply to this post

info399547

Hi Jason,
here's the result of the debug

Status object: WA_UploadResult2
statusCode : 1
errorMessage :
clientFileName : 01_TESTING.swf
fileExtension : swf
serverFileName : 01_testing_17.swf
serverSimpleFileName : 01_testing_17
serverDirectory : /home/content/l/i/s/lisaharvey/html/media/presentations/flash/
contentType : application/x-shockwave-flash
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed : 1
fileSize : 279602
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult2_1:
clientFileName : 01_TESTING.swf
fileExtension : swf
serverFileName : 01_testing_17.swf
serverSimpleFileName : 01_testing_17
serverDirectory : /home/content/l/i/s/lisaharvey/html/media/presentations/flash/
contentType : application/x-shockwave-flash
fileSize : 279602
imageWidth : -1
imageHeight : -1
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed : 1
statusCode : 1
Status object: WA_UploadResult1
statusCode : 1
errorMessage :
clientFileName : 01_TESTING.jpg
fileExtension : jpg
serverFileName : 01_testing_13.jpg
serverSimpleFileName : 01_testing_13
serverDirectory : /home/content/l/i/s/lisaharvey/html/presentations/../media/
contentType : image/jpeg
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed : 1
fileSize : 1971
isImage : 1
imageWidth : 90
imageHeight : 68
WA_UploadResult1_1:
clientFileName : 01_TESTING.jpg
fileExtension : jpg
serverFileName : 01_testing_13.jpg
serverSimpleFileName : 01_testing_13
serverDirectory : /home/content/l/i/s/lisaharvey/html/presentations/../media/
contentType : image/jpeg
fileSize : 1971
imageWidth : 90
imageHeight : 68
isImage : 1
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed : 1
statusCode : 1

Sign in to reply to this post

info399547

and here is the debug from the email

Hello Lisa,

A new presentation has just been uploaded to the Scipt site.

The details are:
Author name: upload
Author surname: upload
Category: Patient education
Country: United States

Title: upload
Description: upload

JPG file:
Notice: Undefined variable: WA_DFP_UploadStatus in /home/content/l/i/s/lisaharvey/html/presentations/upload_Email_lisa.php on line 15

thumbs/
Notice: Undefined variable: WA_DFP_UploadStatus in /home/content/l/i/s/lisaharvey/html/presentations/upload_Email_lisa.php on line 16

SWF file:
Notice: Undefined variable: WA_DFP_UploadStatus in /home/content/l/i/s/lisaharvey/html/presentations/upload_Email_lisa.php on line 17

flash/
Notice: Undefined variable: WA_DFP_UploadStatus in /home/content/l/i/s/lisaharvey/html/presentations/upload_Email_lisa.php on line 18

Do you want to authorise this presentation?
presentation_authorise.php?presentationID?109

Sign in to reply to this post

Jason ByrnesWebAssist

OK, so the file is being uploaded, but the referane isnt passing over to the email.

in the upload.php page, locate the upload file server behavior code:

php:
<?php

WA_DFP_SetupUploadStatusStruct
("WA_UploadResult1");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult1""imageFile""2""[NewFileName]_[Increment]""true"$WA_UploadResult1_Params);
}
?>
<?php
WA_DFP_SetupUploadStatusStruct
("WA_UploadResult2");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult2""downloadFile""2""[NewFileName]_[Increment]""false"$WA_UploadResult2_Params);
}
?>



and add the fallowing after it:

php:
<?php

if($_SERVER["REQUEST_METHOD"] == "POST"){
    
$_SESSION['file1'] = $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"];
    
$_SESSION['file2'] = $WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"];
}
?>




then in the email, use the sessions:

php:
<p>Display file: <?php echo($_SESSION['file1']) ?><br />

  http://www.scipt.org/media/images/<?php echo($_SESSION['file1']) ?><br />
  Download file: <?php echo($_SESSION['file2']) ?><br />
  http://www.scipt.org/media/documents/downloads/<?php echo($_SESSION['file2']) ?><br />
</p>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...