close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

remove Universal Email page

Thread began 1/29/2014 5:09 pm by thepair | Last modified 2/07/2014 5:03 pm by Jason Byrnes | 686 views | 18 replies |

thepair

remove Universal Email page

I have a working php page with Universal Email including an attachment BUT can not add the Progress Bar
I have uploaded the email folder this time.
So I would like to remove Universal Email BUT it is not listed under server behaviors
is it possible to have two Universal Emai on one site?

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page and I can tell the code that needs to be deleted.

Sign in to reply to this post

thepair

see below

Sign in to reply to this post

Jason ByrnesWebAssist

this code:
<?php require_once("../../webassist/email/mail_php.php"); ?>
<?php require_once("../../webassist/email/mailformatting_php.php"); ?><?php
if (!isset($_SESSION))session_start();
if ((isset($_POST["sendEmail"]))) {
//WA Universal Email object="mail"
set_time_limit(0);
$EmailRef = "waue_index_2";
$BurstSize = 200;
$BurstTime = 1;
$WaitTime = 1;
$GoToPage = "thanks.php";
$RecipArray = array();
$StartBurst = time();
$LoopCount = 0;
$TotalEmails = 0;
$RecipIndex = 0;
// build up recipients array
$CurIndex = sizeof($RecipArray);
$RecipArray[$CurIndex] = array();
$RecipArray[$CurIndex ][] = "dave@seaportnet.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_start();
$_SESSION[$EmailRef."_Index"] = $LoopCount;
$_SESSION[$EmailRef."_Remaining"] = round($TimeRemaining);
session_commit();
wa_sleep($WaitTime);
include("../../webassist/email/waue_index_2.php");
$endtime = microtime_float();
$TimeTracker[] =$endtime - $starttime;
$RealWait = array_sum($TimeTracker)/sizeof($TimeTracker);
if ($LoopCount % $BurstSize == 0 && $CurIndex < sizeof($RecipArray[$RecipIndex])) {
$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);
}
}
?>


is the universal email code.

Sign in to reply to this post

thepair

remove Universal Email page

I guess my title is misleading.
What I am trying to do is take a Universal Email page with an Attachment that works and add the Progress Bar.
every time I try something different it adds lines of code like
@import url("../../webassist/progress_bar/index_Universal_Email_2_Progress_4.css");
@import url("../../webassist/progress_bar/index_Universal_Email_2_Progress_5.css");
AND
<?php require_once("../../webassist/progress_bar/index_Universal_Email_2_Progress_4.php"); ?>
<?php require_once("../../webassist/progress_bar/index_Universal_Email_2_Progress_5.php"); ?>

The other page I was working on was not working because I did not upload the webassist folder before testing.
can I have more than one Universal Email per website?

Sign in to reply to this post

Jason ByrnesWebAssist

sounds like you are adding the progress bar more than once.


each time you add the progress bar it will add the code for the index_Universal_Email_2_Progress_<int>.php and index_Universal_Email_2_Progress_<int>.css files

yes, you can have more than one UE per website, you can even have more than one UE per page.

Sign in to reply to this post

thepair

I sent you my whole page, can you tell me what is wrong with it?

Sign in to reply to this post

Jason ByrnesWebAssist

you don't give any indication of what is not working.

i have no way to know what is wrong with out any idea of what the problem is.

please provide steps to see the problem happen, a description of what should happen and a description of what is happening.

Sign in to reply to this post

thepair

Hi Jason, thanks I will get back to you.
I am not sure what I did.
For some reason it started to work.
www.iobgd14.org/massEmail

Sign in to reply to this post

thepair

I am testing Universal Email on my site and so have two folders each with a different Universal Email.
My question is why does Universal Email when it shows up in the Application->Server Behaviors as:
Universal Email 1
Universal Email 2 etc
in this case it showed up as Universal Email 2 in both folders
I have seen it as Universal Email 4 on another site

Sign in to reply to this post
loading

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