PDA

View Full Version : Creating Loop in UE Body


Martin
03-23-2009, 05:48 PM
Greetings,

I am trying to create a loop inside UE (inside the text body) so that if I am uploading multiple files it sends the file name to a specific e-mail.

I have it working so far so that it can recognize one file from the upload.

------------------------------------------------

The files uploaded were as follows:

Filename: <?php echo ((isset($_POST["Filename"]))?$_POST["Filename"]:"")?>
Filedate: <?php echo ((isset($_POST["Filedata"]))?$_POST["Filedata"]:"")?>

------------------------------------------------

How do I loop this so that it either sends multiple e-mails for each file uploaded or how do I prevent the e-mail from sending till all the files are uploaded. So if there are 5 files uploaded it would repeat the filename and filedate 5 times in the e-mail body?

I would appreciate any help!

Thanks,

Martin

Ray Borduin
03-24-2009, 07:39 AM
You could probably do either. You could apply the email server behavior multiple times for each upload, or send one email and make sure it occurs after all of the uploads by viewing the position in the server behaviors panel and moving it lower if necessary. At that point it just becomes a matter of using the upload field bindings to create the email contents you want to use.

Martin
03-29-2009, 08:32 AM
Hi Ray,

Thanks for getting back to me about this. Sorry I was not able to reply sooner.

Best regards,

Martin