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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need to have contact form fields sent to me as email

Thread began 10/20/2011 9:59 pm by lr_leal239405 | Last modified 10/21/2011 4:31 pm by Jason Byrnes | 701 views | 5 replies |

lr_leal239405

Need to have contact form fields sent to me as email

Is there an automated function to easily have all Contact form fields sent to my email? I already have it collect in a db and it sends an empty email but, of course, I need to fill the email with the form field data. Just trying to cut on my time. thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

In Universal Email 4, there is an option to create a file for the email body and select one of the existing templates, these templates have code in place to automatically loop through the form fields and add them to the email body.

Sign in to reply to this post

lr_leal239405

I have Universal Email 5 which also has has the templates, but I don't see anything with code in place to automatically loop through form fields for the for body. ??

Sign in to reply to this post

Jason ByrnesWebAssist

Universal Email 5 does not exist.... the latest version of Universal Email is 4.0.1

it is also integrated into CSS Form Builder 2.



in the template file, there should be the following code to loop through the form:

php:
<?php

foreach( $_POST as $pkey => $pval ){
  if (!
RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes))  {
?>
                    <tr valign="top">
                        <th style="font-family: 'Times New Roman', Times, serif; font-size: 10px;width: 134px; text-align: right; padding: 3px 10px 3px 3px; color: #666; font-weight: bold;"><?php echo(str_replace("_"," ",$pkey)); ?>:</th>
                        <td style="font-family: 'Times New Roman', Times, serif; font-size: 10px;padding: 3px; border-left: 1px solid #DDD; color: #B6B6B6;"><?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>
                    </tr>
<?php
  
}
}
?>
Sign in to reply to this post

lr_leal239405

It distinctly says 'Universal email 5' on the behaviors listing, so that's what I assumed.

The 'Send Email Settings' is greyed out when I build a new form. By the way it's specifically a 'Website Designers' form even though I said 'Contact'. But even when I try to build a contact form, the Form Function 'Send Email Settings' is greyed out.

I pasted what the code you sent and it does it but, of course, it's not formatted properly. So I was just trying to recreate a form and apply the Send Email Settings but for some reason they're greyed out.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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