I have set everything up ok (or so i thought) and the email is sending however there are no attachments. Neither the entered value attachment or the repeat region attachments are sending. I have echoed the values to the page so i know there are values in there. I have tried putting absolute and relative urls.
<?php
if (isset($_POST["submit"]) || isset($_POST["submit_x"])) { //WA Universal Email
$Email = new WA_Email("waue_email_conf_2");
$Email->Redirect = "request_Detail.php?ID=".((isset($_POST["RequestID"]))?$_POST["RequestID"]:"") ."";
$Email->From = "info@website.co.uk";
$Email->BurstSize = "200";
$Email->BurstTime = "1";
$Email->WaitTime = "1";
$Email->addTo("".((isset($_POST["Email"]))?$_POST["Email"]:"") ."");
$Email->addCC("".((isset($_POST["Email2"]))?$_POST["Email2"]:"") ."");
$Email->addAttachment("https://www.website.co.uk/clientconf/".($Payments->getColumnVal("ATOLCert")) ."");
$Email->addAttachmentFromRS("service","Attachment");
$Email->BodyFile = "../webassist/email/waue_email_conf_2_body.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "".($request->getColumnVal("Title")) ." ".($request->getColumnVal("Surname")) .", ".($request->getColumnVal("Product")) ." ".($request->getColumnVal("ClientID")) ."";
$Email->send($emailGroup);
}
$Email->close();
}
?>