close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upload and attach the same file to email.

Thread began 4/20/2011 3:06 pm by Lon Winters | Last modified 2/21/2014 2:31 pm by Jason Byrnes | 2323 views | 19 replies |

Lon WintersBeta Tester

Upload and attach the same file to email.

In the following thread, I believe my solution exists:

showthread.php?t=16501

I am trying to both upload the file and attach it to an email. I read where I couldn't use the Submitted File option for the attached file, but I'm wondering if I need to apply all the other code changes in that thread or if they were meant specifically for that person in that situation.

I did try to only use the Server Variable as an entered value for the attachment, but so far that hasn't worked - an attachment came through, a DAT file.

If I do have to implement more code changes, what should I be on the lookout for as far as variables that were included in that solution that may be unique to that person, and which ones are set WA variables?

Sign in to reply to this post

Jason ByrnesWebAssist

not all of the code changes are needed, you will just need to click the lightning bolt next to entered value, and select the Server directory variable, the code created will look like:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?>



copy that, as long as you are copying the code that is created in the wizard, it will be correct for you.

Then cleck the lightnkng bolt again and select the server file name, this will create code similar to:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?><?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>


past the server directory code in front of it so the full string looks like:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?><?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>

Sign in to reply to this post

Lon WintersBeta Tester

Thanks - that did it.

I just stumbled for a minute, I was looking in the source code for the copy and paste mentioned above, but then I realized that you meant to do it right in the UE wizard.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.

Sign in to reply to this post

Php

upload feature

Hi, I have a form how would I setup to receive images as attachment on my email? Would I be able test on my local server?

Sign in to reply to this post

Jason ByrnesWebAssist

there are 2 ways to attach files to an email??

1) Dont use the file upload behavior and select the Submitted file option on the attachments tab of the UE behavior

??2) Use the file upload behavior to save the file to the server. Then on the attachments tab of the UE behavior, select the enter value option.??Click the lightning bolt icon and expand the Uploaded Files binding group, select the Server Directory binding. Copy the code for the server directory binding, then select the Server file name binding. lastly, copy the server directory code in front of the server file name binding code.


no, you wont be able to test sending emails locally unless you install an SMTP server.

Sign in to reply to this post

Php

Originally Said By: Jason Byrnes
  there are 2 ways to attach files to an email??

1) Dont use the file upload behavior and select the Submitted file option on the attachments tab of the UE behavior

??2) Use the file upload behavior to save the file to the server. Then on the attachments tab of the UE behavior, select the enter value option.??Click the lightning bolt icon and expand the Uploaded Files binding group, select the Server Directory binding. Copy the code for the server directory binding, then select the Server file name binding. lastly, copy the server directory code in front of the server file name binding code.


no, you wont be able to test sending emails locally unless you install an SMTP server.  



Do you have tutorial on option 1? I have the latest extensions installed?

Sign in to reply to this post

Jason ByrnesWebAssist

no, there is not a tutorial, the steps a list above are what you need to do.

Sign in to reply to this post

Php

Originally Said By: Php
  Do you have tutorial on option 1? I have the latest extensions installed?  



where is this option i cant seem to find it?

Sign in to reply to this post

Jason ByrnesWebAssist

in the Universal Email server behavior, click the paper clip toolbar for the attachment options

Sign in to reply to this post
loading

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...