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

I just want to create a simple form and send its contents

Thread began 2/26/2015 1:10 am by david323147 | Last modified 2/26/2015 1:04 pm by Jason Byrnes | 778 views | 7 replies |

david323147

I just want to create a simple form and send its contents

Is there a tutorial on the site to create a a simple form (name, address, phone, email,) and email the contents?

I tried using the wizard (Webassiste>Forms>Insert New Form, with no success. On the form function tab I did check the checkbox for send contents to an email address and in the from field I clicked the lightening bolt and selected Email_Address under Current working form. In the To field I put the email address I want the data sent.

When I test it, the form appears to be submitted, but the email with the information is never received. I do not have this information going to a database. I simply want the form to gather information and email it.

Sign in to reply to this post

Jason ByrnesWebAssist

Who is your host?

Depending on your host, you may need to set certain options in Universal Email.

Some hosts will work if you leave the SMTP Server setting on the Email Server Tab blank, others will require that you enter the SMTP server address.

Some will work using the standard Mail protocol, other will require that you use the Pear Mail for SMTP, some using Pear mail will require authentication.

Some hosts may require that the from address being used be a valid email address for your domain. Some may require that the option to include the from Email address be passed as an extra parameter.

To be successful with Universal Email, you will need to know the requirements of your host for sending an email using a PHP script.

Also, double check your Spam folder, it is possible that the email is being trapped as spam.


NOTE: to edit email settings, open the server behaviors panel, and double click the Universal Email server behavior.

Also, make sure you are testing on the remote server, sending email will not work on a local testing server if no SMTP server is configured.

Sign in to reply to this post

david323147

Thanks Jason.

I searched my host's (Newtek) knowledge base and found what is below. Unfortunately, I don't know what to do with this information.

Also, how do I set it so the user is automatically redirected to a "success" page?

Your help is greatly appreciated!

Here is an example script for sending out mail using php:

<?
// Please specify your Mail Server - Example: mail.yourdomain.com.
ini_set("SMTP","mail.YourDomain.com");

// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");

// Please specify the return address to use
ini_set('sendmail_from', 'ValidEmailAccount@YourDomain.com');

// Set parameters of the email
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";

// Mail function that sends the email.
mail($to,$subject,$message,$headers);
?>

Sign in to reply to this post

Jason ByrnesWebAssist

so this means you need to specify the SMTP server as:
mail.YourDomain.com


where YourDomain is your domain

and set the port to 25.

edit the universal email server behavior, and click the folder icon to access the SMTP server settings.

Sign in to reply to this post

david323147

Sorry for being so dense about this but I just don't follow.

The attachment below shows my server behaviors window in Dreamweaver. What do I select? I don't see anything having to do with SMTP settings. If I click the + sign and select Edit Server Behaviors I get what you see in the second image but still no SMTP settings.

Thanks for your patience.

Sign in to reply to this post

Jason ByrnesWebAssist

in the server behaviors list, double click the Universal Email server behavior to edit it.

in the UE server behavior, click the envelope icon to access the SMTP server settings.

Sign in to reply to this post

david323147

Ah, got it! And I saw the Go to Page option which I set and all is working.

Again, thank you so much!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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