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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email Sent Twice

Thread began 3/19/2010 12:59 pm by karen.marley367377 | Last modified 3/22/2010 2:13 pm by Eric Mittman | 540 views | 1 replies |

karen.marley367377

Email Sent Twice

Hi
I have a contact form using Form Builder and UA. The email is being sent twice - I have changed the email address on this request for security reasons.

<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php
if (isset($_POST["SimpleContact_submit"])) {
$WAFV_Redirect = "form.php?invalid=true";
$_SESSION['WAVT_form_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Contact_me_group_Name"])?$_POST["Contact_me_group_Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateEM((isset($_POST["Contact_me_group_Email"])?$_POST["Contact_me_group_Email"]:"") . "",true,2);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Contact_me_group_nbsp"])?$_POST["Contact_me_group_nbsp"]:"")) . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,4);
$WAFV_Errors .= WAValidateRX((isset($_POST["HiddenFields_fields"])?$_POST["HiddenFields_fields"]:"") . "","/.*/",false,5);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"form");
}
}
?><?php require_once("WA_Universal_Email/mail_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "MYEMAIL@MYEMAIL.com";include("WA_Universal_Email/WAUE_form_1.php");

//Send Mail All Entries
if ("redirect.html"!="") {
header("Location: redirect.html");
}
}
?>

Sign in to reply to this post

Eric Mittman

When the Universal Email is triggered are you being redirected to the page you specified? It looks like you have it only set to go to the one individual, do you also have anyone setup in the cc or bcc? If so are they getting more than one email message? Have you tried this with any other email addresses to see if it happens to all the same way?

Please post back and let us know about these details and also if you can please post back with the page that has the UE server behavior and the files inside of your UniversalEmail folder for the page in question. You can remove the email addresses, I just would like to check on the code on these pages.

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