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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Contact Form - Autoreply

Thread began 10/02/2009 8:43 am by todd368532 | Last modified 1/12/2010 1:54 pm by Eric Mittman | 3113 views | 5 replies |

todd368532

Contact Form - Autoreply

Hi Gang,

I use the Contact From Solution Pack and would like to have an autoreply sent to the sender of the form. It would just be a "Hey we got your email, thanks, we'll get back to you" kind of thing. How/where do I add that?

Thanks
Todd

Sign in to reply to this post

Eric Mittman

There are a couple of ways you can do this. The easiest is probably to just duplicate the email code and use the email address that the user entered like this:

php:
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To)  ."";include("WA_Universal_Email/WAUE_contact_1.php"); 

   $RecipientEmail = "".(isset($_POST["Email_address"]))?$_POST["Email_address"]:"")  ."";include("WA_Universal_Email/WAUE_contact_1.php");



This will just send a duplicate of the message to the user. Another more complex way would be to duplicate the UE code then update the values to use a copy of the email page. You can then go into the copy of the email template and change the body to whatever you would like. This is a more advanced technique that requires coding and editing.

The other way to do this is to just use Universal Email to add a new server behavior to the contact page. You can just craft the message to be whatever you would like and send it to the posted email address:

isset($_POST["Email_address"])?$_POST["Email_address"]:""

Sign in to reply to this post

Wasntme

error

I added the code as advised, it works with one error. I gets 2 emails instead of one.

Please help...

Originally Said By: Eric Mittman
  There are a couple of ways you can do this. The easiest is probably to just duplicate the email code and use the email address that the user entered like this:

php:
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To)  ."";include("WA_Universal_Email/WAUE_contact_1.php"); 
   $RecipientEmail = "".(isset($_POST["Email_address"]))?$_POST["Email_address"]:"")  ."";include("WA_Universal_Email/WAUE_contact_1.php");


This will just send a duplicate of the message to the user. Another more complex way would be to duplicate the UE code then update the values to use a copy of the email page. You can then go into the copy of the email template and change the body to whatever you would like. This is a more advanced technique that requires coding and editing.

The other way to do this is to just use Universal Email to add a new server behavior to the contact page. You can just craft the message to be whatever you would like and send it to the posted email address:

isset($_POST["Email_address"])?$_POST["Email_address"]:""  
Sign in to reply to this post

Eric Mittman

Do you only get the two emails when you have the extra line of code on the page? When you added the extra code to the page did you add both lines in addition to the code that was already on the page or did you replace the one line with the two lines of code?

The first line of that sample code should already be in place on your page. If you just added the two new lines of code then you would ge the email twice because the code would execute twice. Please post back with the details so we can look into this further.

Sign in to reply to this post

Wasntme

Thank you

Thank you Eric you were correct i had 1 extra line of code.. how stupid of me. thank you so much for your help.


Originally Said By: Eric Mittman
  Do you only get the two emails when you have the extra line of code on the page? When you added the extra code to the page did you add both lines in addition to the code that was already on the page or did you replace the one line with the two lines of code?

The first line of that sample code should already be in place on your page. If you just added the two new lines of code then you would ge the email twice because the code would execute twice. Please post back with the details so we can look into this further.  
Sign in to reply to this post

Eric Mittman

You are very welcome, I'm glad you got it sorted out.

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