close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Second email on page not sending

Thread began 5/07/2020 6:55 am by MagsW | Last modified 5/07/2020 6:03 pm by Ray Borduin | 23 views | 4 replies |

MagsW

Second email on page not sending

Hi Ray, I've just updated one of our client's sites to PHP7 and in the process have updated the Universal Email behaviors to the newer Send Email. On the contact page I have two emails that are sent when the form is submitted, the first one to the site owners with the form details and the other is a confirmation message which goes to the user. However, only the first email is sending. I swapped the code order to see what would happen and sure enough the confirmation email sends but the form details one doesn't. I've attached the page, could you possibly take a look for me?

Sign in to reply to this post

Ray BorduinWebAssist

There is a redirect after sending the first email. Just move it to the second one so it doesn't redirect until after the second email is sent. Currently it redirects after the first email and that prevents the second one from sending.

Sign in to reply to this post
Did this help? Tips are appreciated...

MagsW

Hi Ray, I did that but I've now discovered another issue. On the confirmation email, we include a message which is added by our client via PowerCMS. However, it's preventing the email from sending. I added error reporting to the form page and have copied the error message in the PM section. I thought it may be a problem with the path to the connection file and mysqli.php but even if I add the full path i.e. /var/www/vhosts/... etc I still get the error message. I've attached a copy of the actual email message from the /webassist/email directory.

Sign in to reply to this post

Ray BorduinWebAssist

Change this line:

php:
<?php require_once('../../Connections/PowerCMSConnection.php'); ?>


to:

php:
<?php require('../../Connections/PowerCMSConnection.php'); ?>


or just:

php:
<?php 

global $database_PowerCMSConnection$PowerCMSConnection;
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

MagsW

That worked, thanks!

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