close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email v.3.04 - File Attachments

Thread began 4/30/2009 3:37 pm by tom92909 | Last modified 6/04/2009 1:22 pm by Ray Borduin | 5929 views | 26 replies |

tom92909Beta Tester

Universal Email v.3.04 - File Attachments

I have checked most if not all of the support documents, and looked for any reference here on the forums, but I haven't been able to location any examples of how to include file attachments using Universal Email.

I found this reference and similar on your site and in the help documentation:
Universal Email can send attachments along with the email messages, as long as the file exists on the server. To do this you will only need to specify the file name and location on the server within the attachment tab in Universal Email.

That being said, I am unable to include my attachements with my emails...

My example...

/PDF/<?php echo $row_Recordset1['filename']; ?>

This hasn't worked. Please clarify the Absolute Path.

Thank you in advance for your time and comments.

Sign in to reply to this post

Ray BorduinWebAssist

use:

<?php echo(realpath("/PDF/".$row_Recordset1['filename'])); ?>

Sign in to reply to this post

tom92909Beta Tester

Same result, the message is being sent no problem, but I'm getting no physical file attachment.

I also got a Dialog from CS3..

"It appears that one of your server-side values is improperly coded. Please check this interface for inconsistencies."

This appeared after I added the
<?php echo(realpath("../PDF/".$row_Recordset1['filename'])); ?>

To the Entered Value field in the Attachments Tab for UE.

Sign in to reply to this post

Ray BorduinWebAssist

It looks correct. What does it look like in the resulting email include file that references the attachment? Maybe you left some code behind causing the error. It is hard to say without looking at the code.

Sign in to reply to this post

tom92909Beta Tester

I added just the true absolute path in place of the (realpath("/PDF/".$row_Recordset1['filename']) option that your mentioned. I am still getting the same results either way, but the dialog box is no longer showing up after I made the last change.

Below is the requested code I think...

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

//Attachment Entries
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/abcdefg/public_html/PDF/".$row_getRecordset1['filename']."");

Sign in to reply to this post

Ray BorduinWebAssist

//Attachment Entries
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/abcdefg/public_html/PDF/".$row_getRecordset1['filename']."");


should be:


//Attachment Entries
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"". realpath('/home/abcdefg/public_html/PDF/'.$row_getRecordset1['filename']) . "");

Sign in to reply to this post

tom92909Beta Tester

Using your suggested change just now, I get no errors, but no attachment either.

Sign in to reply to this post

Ray BorduinWebAssist

Is the email code below the Recordset?

Maybe add code before that line like:

//Attachment Entries
die(realpath('/home/abcdefg/public_html/PDF/'.$row_getRecordset1['filename']));

That will stop processing the code and write the value to the page. Does the path look correct when you do that?

Sign in to reply to this post

tom92909Beta Tester

Yes.
The path is perfect using the die command.

So it appears that the Recordset isn't being passed to the path.
I still don't have an attachment either.

Sign in to reply to this post

tom92909Beta Tester

I have the issue resolved now.

Thank you for your guidance and patience.

Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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