Oops / Blank Email
Overlooked that. Thanks for pointing that out.
I'm one step forward now, and although I got it to the point where it's generating an email it's not decking it out with any content for some reason.
The confirm page (confirm.php) calls on WA_Universal_Email/WAUE_confirm_1.php to generate the email, which in turn calls on the receipt.php file from the Email_Templates folder to lay it out.
If I open the confirm.php, open Universal Email 1 (mail) from the Server Behaviours, select the Body tab, choose DW Edit (HTML), within the body tag of my email is the following code ...
<?php
ob_start();
require_once(dirname(__FILE__) . ("/Email_Templates/receipt.php"));
$contents = ob_get_clean();
?>
Once again it's "out of the box", but it doesn't seem to be decking out my email with content. Thoughts on why? I've checked that all files have been uploaded.
For the record the WAUE_confirm_1.php page looks like this ...
<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "".($WAGLOBAL_Receipt_Email_FROM) ."";
$MailSubject = "".($WAGLOBAL_Receipt_Email_Subject) ."";
$_SERVER["QUERY_STRING"] = "";
//Global Variables
$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","","","","");
if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}
//Attachment Entries
//BCC Entries
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"".($WAGLOBAL_Receipt_Email_BCC) ."");
//CC Entries
$WA_MailObject = WAUE_AddCC($WA_MailObject,"".($WAGLOBAL_Receipt_Email_CC) ."");
//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,2);
//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");
//Start Mail Body
$MailBody = $MailBody . "";
ob_start();
require_once(dirname(__FILE__) . ("/Email_Templates/receipt.php"));
$contents = ob_get_clean();
$MailBody = $MailBody . "<multipartbreak><html><head></head><body>\r\n";
ob_start();
require_once(dirname(__FILE__) . ("/Email_Templates/receipt.php"));
$contents = ob_get_clean();
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "</body></html>";
//End Mail Body
$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody);
$WA_MailObject = null;
?>