Attachment not being added
Using latest version UE 3.0.5 with CS3 and doing php.
I have a page with 2 instances of Universal Email on it. The first sends an email to the web site owner with form information. The second sends an email to the customer that completed the form. The second is also supposed to send an attachment.
Both emails are sent fine, but the file is not attached to second (customer) email.
Here is a portion of the code from the second instance with the specific client information removed:
-------------------------------------------------------------------------------------
<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "MyDomian|WA|myemail@mydomain.com";
$MailSubject = "Your info from MyDomain";
$_SERVER["QUERY_STRING"] = "";
//Global Variables
$WA_MailObject = WAUE_Definition("mail.mydomain.com","25","myemail@mydomain.com","MyDomain","DomianMail","us-ascii");
if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}
//Attachment Entries
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"http://www.mydomain.com/BuyersGuide.pdf");
//BCC Entries
//CC Entries
//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);
//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");
//Start Mail Body
$MailBody = $MailBody . "<html><head></head><body>\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<p>Dear ";
$MailBody = $MailBody . $_SESSION['first'];
$MailBody = $MailBody . ",</p>\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "<p>Thank you. Rest of message here.</p>\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;
?>
-------------------------------------------------------------------------------------
The PDF is in the root directory so I tired specifying the file as:
/BuyersGuide.pdf
That didn't work so, i tried the full url:
BuyersGuide.pdf
That didn't work!
Suggestions??
Thanks,
David