close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Attachment not being added

Thread began 5/19/2009 1:19 pm by mywebassist220499 | Last modified 5/19/2009 3:50 pm by mywebassist220499 | 1564 views | 2 replies


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:
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "MyDomian|WA|";
$MailSubject = "Your info from MyDomain";

//Global Variables

$WA_MailObject = WAUE_Definition("","25","","MyDomain","DomianMail","us-ascii");

if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
else {
//To Entries

//Attachment Entries
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"");
//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:

That didn't work so, i tried the full url:

That didn't work!



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





Ease of use


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