close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email won't send at all

Thread began 9/12/2013 10:07 am by mrs | Last modified 9/13/2013 6:36 am by Jason Byrnes | 1805 views | 5 replies |

mrs

Email won't send at all

I've built a contact us page with my own form on it (rather than from form builder), and I have added UE to the email page with the form on it. I have got a simple thank you page too. I have tried to get UE to work on this page for two days now and built the page three times. I started off with a dynamic to email address, but am now using a static one.

No matter what I do I can't get the form to send. I have other email functionality working fine on the same site such as registration confirmation which I have just tested. Can you tell me what I am doing wrong as this is driving me mad with frustration? The last time I built this, I don't even get the contact-thanks page anymore, but that's probably because I removed all form action info hoping the UE would handle it. I've watched your tuts on YouTube to see what I am doing wrong, but nothing stood out. I've tried printing the results of the form too, but I am getting nothing to work with, so I am sure I am doing something wrong here too.

Thank you.

Files attached.

Sign in to reply to this post

Jason ByrnesWebAssist

your form tag:
<form name="contact_us" id="contact_us">


does not set a method. by leaving the method blank, it will use the GET method, but UE is expecting the for it to use the Post method.

you need to set the method to post. also, you should set the forms action, you should set the action of the form to post to itself:
<form name="contact_us" id="contact_us" method="post" action="contact-us.php">

Sign in to reply to this post

mrs

Aha!

I had all that in place previously apart from posting to itself. I was posting to the thanks page.

Prior to this site, I have always built contact forms where I have UE on the thank you page, but in this instance I am going to add jQuery messages at a later date, so thought I'd put it in the right place to start with!

Thanks for a quick reply

Sign in to reply to this post

Jason ByrnesWebAssist

Rule # 1 when working with forms:

All form Processing must occur on the page specified as the Action.

if you specify the action as another page, UE needs to go on that page.

If you specify the same page, UE can go on thee form page.

Sign in to reply to this post

mrs

Ok, I have some confusion now that I am adding server validation. The video about it by Anna says to add the server validation code on the thank you page (confirm in her case), but the universal email code is on the contact page with the form...

Surely if everything on the page validates via spry, then the page sends the email before it gets to the server validation on the thank you page. Is that right? If so, do I add the server validation to the form page, or do I add universal email to the thank you page.

To me, it makes sense to have the validation code before the email code just in case the form isn't valid. Is that right? If so, on what page?

Sign in to reply to this post

Jason ByrnesWebAssist

  do I add the server validation to the form page, or do I add universal email to the thank you page.  




re read my last reply

  Rule # 1 when working with forms:

All form Processing must occur on the page specified as the Action.  



Server validation is a type of form processing. Therefore, server validation must be applied to the page specified as the action of the form.

In the tutorial, the action of the form on the checkout page is set to post to the confirm page, that is why Anna is adding the validation to the confirm page.

Both Universal Email and Server validation are processing the form, so both need to be added to the page specified as the action in the form tag.

just make sure that the server validation code comes before the Universal Email code so that the email will only send if validation passes.

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