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

Form passes to thank you page but no e-mail sent

Thread began 12/10/2009 5:08 pm by dfrith246697 | Last modified 12/15/2009 2:18 pm by dfrith246697 | 1341 views | 6 replies |

dfrith246697

Form passes to thank you page but no e-mail sent

I am using the Universal E-mail Extension for a form (contactmgt.php) running on a Linux server. The form gives no error and successfully passes to the Thank You page but no e-mail result is ever received (sent?).

Sign in to reply to this post

Jason ByrnesWebAssist

Is the email server setting correct? in many cases this can be left blank to use the default php setting in the php.ini.

On some SMTP servers, the From Display Name setting on the From tab needs to be left blank.

Sometimes the email may be trapped in a spam folder. Double check that the email is not being caught as spam.


What is the email address you added on the To tab? is the From email address being pulled from the form? Make sure when testing that you are entering a different email address, some SMTP server will not relay an email where the from and to addresses are the same .


If all else fails, contact the host to see if they can look at the SMTP server error logs to see why the email is not being relayed by the SMTP server.

Sign in to reply to this post

dfrith246697

Form passes to thank you page but no e-mail sent

The apache logs for the server are returning an error:

"Undefined variable on WA_Global_Mail_2" in line 29 of contaMGT.PHP

I previously gave the wrong domain - this file is located at contactmgt.php

Sorry!

Dave...

Sign in to reply to this post

Jason ByrnesWebAssist

please post a copy of your contaMGT.PHP page so I can look at the code.

Sign in to reply to this post

dfrith246697

Copy of Code

The form seems to be working OK now but it is showing errors in the server log. (See following):

[Tue Dec 15 16:35:44 2009] [error] [client 198.65.168.24] PHP Notice: Undefined variable: WAGLOBAL_Contact_Email_Subject in /home/benttree/www/benttreepbg.com/WA_Universal_Email/WAUE_contact_1.php on line 10, referer: contactmgt.php
[Tue Dec 15 16:35:44 2009] [error] [client 198.65.168.24] PHP Notice: Undefined variable: WAGLOBAL_Contact_Email_BCC in /home/benttree/www/benttreepbg.com/WA_Universal_Email/WAUE_contact_1.php on line 27, referer: contactmgt.php
[Tue Dec 15 16:35:44 2009] [error] [client 198.65.168.24] PHP Notice: Undefined variable: WAGLOBAL_Contact_Email_CC in /home/benttree/www/benttreepbg.com/WA_Universal_Email/WAUE_contact_1.php on line 30, referer: contactmgt.php

It shows that the subject bcc cc were not setup correctly and it was looking for the WAGLOBAL_Contact_Email_* setup. After you changed that the script started to work for the other email addresses you had added. I am still seeing these errors even though it is working now:

[Tue Dec 15 16:41:04 2009] [error] [client 198.65.168.24] PHP Notice: Undefined offset: 0 in /home/benttree/www/benttreepbg.com/WA_Universal_Email/Mail_for_Linux_PHP.php on line 113, referer: contactmgt.php
[Tue Dec 15 16:41:04 2009] [error] [client 198.65.168.24] PHP Notice: Undefined offset: 0 in /home/benttree/www/benttreepbg.com/WA_Universal_Email/Mail_for_Linux_PHP.php on line 115, referer: contactmgt.php
[Tue Dec 15 16:41:04 2009] [error] [client 198.65.168.24] PHP Notice: Undefined offset: 0 in /home/benttree/www/benttreepbg.com/WA_Universal_Email/Mail_for_Linux_PHP.php on line 166, referer: contactmgt.php


The WA Globals file contains:

<?php
$WAGLOBAL_Captcha_Width = "200" ;
$WAGLOBAL_Captcha_Height = "40" ;
$WAGLOBAL_Captcha_Characters = "5" ;
$WAGLOBAL_Captcha_Font = "Fonts/MOM_T___.TTF" ;
$WAGLOBAL_Captcha_BG = "ffffff" ;
$WAGLOBAL_Captcha_Noise = "000000" ;
$WAGLOBAL_Captcha_Text = "000000" ;
$WAGLOBAL_Captcha_BG_transparent = "0" ;
$WAGLOBAL_Email_Server = "" ;
$WAGLOBAL_Contact_Email_Subject = "Bent Tree HOA Contact Form Response" ;
$WAGLOBAL_Email_To = "wordprocess@assocpropmgt.com" ;
$WAGLOBAL_Contact_Email_CC = "president@benttreepbg.com" ;
$WAGLOBAL_Contact_Email_CC = "secretary@benttreepbg.com" ;
$WAGLOBAL_Contact_Email_BCC = "dfrith@wycombeweb.com" ;
?>

Hope this helps!!!

Sign in to reply to this post

Jason ByrnesWebAssist

does the contactmgt.php page contain the following line to connect to the globals file?

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




is on the page before the universal email code?

Sign in to reply to this post

dfrith246697

Contactmgt.php page code

The opening part of the page code is:

<?php require_once('WA_Globals/WA_Globals.php');?>
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php require_once("WA_Universal_Email/Mail_for_Linux_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";

$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_code"]))?strtolower($_POST["Security_code"]):"") . "",((isset($_SESSION["captcha_1"]))?strtolower($_SESSION["captcha_1"]):"") . "",true,4);

$WAFV_Errors .= WAValidateRX(((isset($_POST["addblock"]))?$_POST["addblock"]:"") . "","/^$/i",false,6);
$WAFV_Errors .= WAValidateRX(((isset($_POST["seconddblock"]))?$_POST["seconddblock"]:"") . "","/^$/i",false,7);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
}
?>
<?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 for Linux"
//Send Loop Once Per Entry
$RecipientEmail = "".($WAGLOBAL_Email_To) ."";include("WA_Universal_Email/WAUE_contact_1.php");

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

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