close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Emails not receiving.

Thread began 6/21/2014 2:32 pm by Kumel | Last modified 6/25/2014 10:05 am by Jason Byrnes | 2339 views | 5 replies |

Kumel

Emails not receiving.

Not receiving emails.

Also uploaded here: http://www.nextgenpms.com/contact.php

Attached Files
ue.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Kumel

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.

Attached Files
123.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post

Kumel

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.

Sign in to reply to this post

Jason ByrnesWebAssist

to add another email, change:
$RecipArray[$CurIndex ][] = "kumel619@gmail.com";

to:
$RecipArray[$CurIndex ][] = "kumel619@gmail.com";
$RecipArray[$CurIndex ][] = "otheremail@otherdomain.com";

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