Emails not receiving.
Not receiving emails.
Also uploaded here: http://www.nextgenpms.com/contact.php
Not receiving emails.
Also uploaded here: http://www.nextgenpms.com/contact.php
To troubleshoot, remove the redirect from UE, change:
$GoToPage = "thank-you.html"
to:
$GoToPage = ""
Then add the following code in the body tag:
<?php @session_start(); var_dump($_SESSION); ?>
this will write the session contents to the page including the status of passing the email to the SMTP server. If the status says the email was successfully passed to the SMTP server, you will need to contact the host to determine why the SMTP server is not relaying the email to the recipient.
I removed the universal email. Now i add new one. still facing errors after adding:
Warning</b>: session_start() [<a href='plugins/function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/content/37/6662237/html/contact.php:1) in <b>/home/content/37/6662237/html/contact.php</b> on line <b>4</b><br />
<br />
<b>Warning</b>: session_start() [<a href='plugins/function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/content/37/6662237/html/contact.php:1) in <b>/home/content/37/6662237/html/contact.php</b> on line <b>4</b><br />
this is line 4 : if (!isset($_SESSION))session_start();
if i changed above line 4 to this : @session_start();
Then in server behaviour i can not find UNIVERSAL EMAIL.
then if i submit form then i get this error:
Warningfunction.session-start/home/content/37/6662237/html/contact.php55
Warningfunction.session-start/home/content/37/6662237/html/contact.php55
Warningfunction.session-start/home/content/37/6662237/html/webassist/email/mail_php.php285
Warningfunction.session-start/home/content/37/6662237/html/webassist/email/mail_php.php285
Warningfunction.session-start/home/content/37/6662237/html/contact.php85
all files attached.
I m receiving email now.
The BOM Signature is enabled for this page.
see this thread:
http://www.webassist.com/forums/posts.php?id=19285
and the last section:
2) The Unicode Signature (BOM) PHP bug. the forth screen shot shows the Title / Encoding category of the Page Properties screen (Modify - > Page Properties). Checking the Include Signature (BOM) option can cause the headers already sent error
well thank you. its done.
My page with universal email has this code:
<?php require_once("webassist/email/mail_php.php"); ?>
<?php require_once("webassist/email/mailformatting_php.php"); ?>
<?php
@session_start();
if ((isset($_POST["submit"]))) {
//WA Universal Email object="mail"
set_time_limit(0);
$EmailRef = "waue_contact_1";
$BurstSize = 200;
$BurstTime = 1;
$WaitTime = 1;
$GoToPage = "thank-you.html";
$RecipArray = array();
$StartBurst = time();
$LoopCount = 0;
$TotalEmails = 0;
$RecipIndex = 0;
// build up recipients array
$CurIndex = sizeof($RecipArray);
$RecipArray[$CurIndex] = array();
$RecipArray[$CurIndex ][] = "kumel619@gmail.com";
$TotalEmails += sizeof($RecipArray[$CurIndex]);
$RealWait = ($WaitTime<0.25)?0.25:($WaitTime+0.1);
$TimeTracker = Array();
$TotalBursts = floor($TotalEmails/$BurstSize);
$AfterBursts = $TotalEmails % $BurstSize;
$TimeRemaining = ($TotalBursts * $BurstTime) + ($AfterBursts*$RealWait);
if ($TimeRemaining < ($TotalEmails*$RealWait) ) {
$TimeRemaining = $TotalEmails*$RealWait;
}
$_SESSION[$EmailRef."_Total"] = $TotalEmails;
$_SESSION[$EmailRef."_Index"] = 0;
$_SESSION[$EmailRef."_Remaining"] = $TimeRemaining;
while ($RecipIndex < sizeof($RecipArray)) {
$EnteredValue = is_string($RecipArray[$RecipIndex][0]);
$CurIndex = 0;
while (($EnteredValue && $CurIndex < sizeof($RecipArray[$RecipIndex])) || (!$EnteredValue && $RecipArray[$RecipIndex][0])) {
$starttime = microtime_float();
if ($EnteredValue) {
$RecipientEmail = $RecipArray[$RecipIndex][$CurIndex];
} else {
$RecipientEmail = $RecipArray[$RecipIndex][0][$RecipArray[$RecipIndex][2]];
}
$EmailsRemaining = ($TotalEmails- $LoopCount);
$BurstsRemaining = ceil(($EmailsRemaining-$AfterBursts)/$BurstSize);
$IntoBurst = ($EmailsRemaining-$AfterBursts) % $BurstSize;
if ($AfterBursts<$EmailsRemaining) $IntoBurst = 0;
$TimeRemaining = ($BurstsRemaining * $BurstTime * 60) + ((($AfterBursts<$EmailsRemaining)?$AfterBursts:$EmailsRemaining)*$RealWait) - (($AfterBursts>$EmailsRemaining)?0:($IntoBurst*$RealWait));
if ($TimeRemaining < ($EmailsRemaining*$RealWait) ) {
$TimeRemaining = $EmailsRemaining*$RealWait;
}
$CurIndex ++;
$LoopCount ++;
session_commit();
$_SESSION[$EmailRef."_Index"] = $LoopCount;
$_SESSION[$EmailRef."_Remaining"] = round($TimeRemaining);
session_commit();
wa_sleep($WaitTime);
include("webassist/email/waue_contact_1.php");
$endtime = microtime_float();
$TimeTracker[] =$endtime - $starttime;
$RealWait = array_sum($TimeTracker)/sizeof($TimeTracker);
if ($LoopCount % $BurstSize == 0) {
$TimePassed = (time() - $StartBurst);
if ($TimePassed < ($BurstTime*60)) {
$WaitBurst = ($BurstTime*60) -$TimePassed;
wa_sleep($WaitBurst);
}
else {
$TimeRemaining = ($TotalEmails- $LoopCount)*$RealWait;
}
$StartBurst = time();
}
if (!$EnteredValue) {
$RecipArray[$RecipIndex][0] = mysql_fetch_assoc($RecipArray[$RecipIndex][1]);
}
}
$RecipIndex ++;
}
$_SESSION[$EmailRef."_Total"] = 0;
$_SESSION[$EmailRef."_Index"] = 0;
$_SESSION[$EmailRef."_Remaining"] = 0;
session_commit();
session_start();
if ($GoToPage!="") {
header("Location: ".$GoToPage);
}
}
?>
I can not see UE on server behaviour panel. Reason:
i need to add another email to get sent to.
to add another email, change:
$RecipArray[$CurIndex ][] = "kumel619@gmail.com";
to:
$RecipArray[$CurIndex ][] = "kumel619@gmail.com";
$RecipArray[$CurIndex ][] = "otheremail@otherdomain.com";
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.