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


Problems with email attachments

Thread began 12/23/2009 12:36 pm by rob293221 | Last modified 1/05/2010 10:15 am by Ray Borduin | 1172 views | 3 replies |


Problems with email attachments

I can not get the email attachment function to work. The script forwards me to the correct followup page, it sends the email, but no attachments. I have attached the files associated with this. Please help!!!

Attached Files
Sign in to reply to this post

Ray BorduinWebAssist

You need to use the absolute path to the file in order to add an attachment.

You can probably use realpath() in order to translate your relative path to the correct absolute path.


it will end up looking something like:

$WA_MailObject = WAUE_AddAttachment($WA_MailObject,realpath("/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ."");

Sign in to reply to this post


I was able to get some attachments, but they are .dat files instead of the files uploaded thru the form. How do I correct this?

Another issue is that when the captcha code is entered wrong, all of the entered data disappears. Is there a way to prevent this?

I have attached updated files.

Thanks for your help.

Attached Files
Sign in to reply to this post

Ray BorduinWebAssist

I looked at your WAUE_application_1.php file.

You have:

$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult1"][""]  ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult2"][""] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult3"][""] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult4"][""] ."");

I think it should be:

$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]  ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/".$WA_DFP_UploadStatus["WA_UploadResult4"]["serverFileName"] ."");
Sign in to reply to this post

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