4 Replies Latest reply on Nov 30, 2008 5:59 PM by (cdembek)

    How to upload a file and Email it

      how would i go about creating a form with a few fields and a file upload. So that when it is submitted the field information is sent via email along with the file that was uploaded as an attachment ?

      thanks
        • 1. Re: How to upload a file and Email it
          Waleed Barakat Level 1
          Hi, poorieno

          in this case you have to use A File Upload transaction with your sending form and the builtin attachment that comes with ADDT.
          * to do that follow this:
          - after creating your form with the file field row select it from the form then go to:
          * Insert > Developer toolbox > File Upload > Upload file
          - create the folder in your site root to upload the file in.
          - then select the files you wish to upload "images - txt - PDF"
          - now define the sending email trigger options as follow:
          ---------------
          * the main tab

          ---------------
          1- set from field to the sender email address.
          2- set the To field to your email or any other email to receive Msgs.
          3- subject , body , content etc.

          ----------------
          * the option tab:

          ----------------
          set as what fits you.

          ######################################
          * the Attachment tab: (here is the solution)

          ######################################
          1- click the + btn to add the attachment options.
          2- click Brows btn to select the folder that you already created when we uploading our files in.
          3- in the field option select the field that stores the files names that we uploaded into the database.
          4- click the finish button to close the window.
          5- save your work and upload it to the remote server "you should have internet connection actually to send the message with the attachment that you uploaded in the database.
          ** finally open your mailbox and open the message and see how it works...
          thank you.
          • 2. Re: How to upload a file and Email it
            At this step....

            "Insert > Developer toolbox > File Upload > Upload file - create the folder in your site root to upload the file in"

            I get the following error

            There are no insert or updates transactions on page. Please insert an appropriate transaction first.

            I don't want to write to a Db, just send an email
            • 3. Re: How to upload a file and Email it
              I'm a little new at this but I learned this paticular issue yesterday.

              http://www.guenter-schenk.com/tutorials/tutorial.php?id=2

              I'm pretty sure this is what you are looking for, if not sorry for the misinterpretation.

              J
              • 4. Re: How to upload a file and Email it
                Level 1
                Yup that's what I was looking for, thanks!!