UE-mail not working with ASP Captcha
I added the ASP captcha from "hotdreamweaver" to my contact page.
It works but the UA-mail doesn't work anymore.
Any idea or experience with this ?
Thanks in advance.
I added the ASP captcha from "hotdreamweaver" to my contact page.
It works but the UA-mail doesn't work anymore.
Any idea or experience with this ?
Thanks in advance.
What version of UE are you using? UE 4 only supports PHP.
Also, can you explain the error you are getting that is preventing UE from working.
UE 3.0.7
There's no error-message.
On submit, the captcha works fine and the Contact_OK page appears.
But the UE-mail is not sent.
Can you please check to make sure the UE code is being called by placing a debugging statement(Response.End) before the following line:
WA_Universal_Email_1_SendMail("info@frogstyling.be")
This will tell us if the Universal Email is being ran at all on the page.
This is the piece of code you ask :
<%
if ((cStr(Request.Form("VraagOpmerking")) <> "")) then
'WA Universal Email object="CDOSYS"
'Send Loop Once Per Entry
WA_Universal_Email_1_SendMail("info@frogstyling.be")
'Send Mail All Entries
if ("Contact_OK.asp"<>"") then
Response.Redirect("Contact_OK.asp")
end if
end if
%>
I tried a few changings to help you :
UE Response.Redirect ("") AND form action="Contact_OK.asp"
>>> the Captcha works, but the UE doesn't work.
UE Response.Redirect ("Contact_OK.asp") AND form action=""
>>> UE works no matter the captcha-field is empty, wrong or right, so the Captcha doesn't work.
I think there must be the conflict ?
all form processing must be done on the forms action page.
it sounds like the captcha functions have been added to the Contact_OK.asp, you will need to add universal email to that page as well.
The "Contact-page" is the page with the form, the Captcha and the UEmail.
On submit this page customer will be direct to the "Contact_OK-page".
So, I don't understand what you mean.
on the contact us page, you have a form, the action of the form is set to post to the Contact_OK.asp, You have applied the Universal Email Behavior to the contact.asp page, you need to apply it to the forms action page:Contact_OK.asp
<form action="Contact_OK.asp" method="post" name="Opmerking_Vraag" id="Opmerking_Vraag" onsubmit="MM_validateForm('Naam','','R','Email','','RisEmail','Onderwerp','','R','VraagOpmerking','','R');return document.MM_returnValue">
On the "Contact_OK" is no form, this is just a confirmation page that says the "customer's remark/question" is sent.
On the"Contact" :
- a field check (onsubmit="MM_validateForm('Naam','','R','Email','' ,'RisEmail','Onderwerp','','R','VraagOpmerking','' ,'R');return document.MM_returnValue)
- UEmail to send customer's question
- Captcha
that does not matter.
the action of the form is to post to the Contact_OK page. all form processing must occur on the forms action page. Sending the email is a part of processing the form, so the email behavior must be on the Contact_OK page, since that is where the form posts to.
in an earlier post you wrote:
the captcha works in this configuration because the code to validate the captcha is on the Contact_OK.asp page. the email does not work, because the code to send the email is on the same page as the form.
you then wrote:
the email works because the action of the form is set to post to the same page the email behavior code is on, captcha does not work because the form does not post to the Contact_OK.asp page.
either add the code for captcha to the form page, and change the action to be blank, or leave the action posting to the Contact_OK.asp page and add the Email behavior to the Contact_OK.asp page.
either way: All Form Processing MUST Occur on the Forms Action Page
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.