DFP and Universal Email work together or no?
Hello,
I need to download a file then send an email.. Simple enough.
But does one cancel out the other? If the download is in front of the email calls only the download happens. IF the download is after the email the GoToPage variable is called and the page header redirects before the download can happen.
And if you move the email includes before the helper.php the download is put into the browser window creating a crash.
<?php require_once("webassist/file_manipulation/helperphp.php"); ?>
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["imageField_x"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "downloads/", "tapecalc_setup.zip", "[FileName]", false, false, false, "", "", "", "");
}
?>
<?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["imageField_x"]))) {
//WA Universal Email object="mail"