close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email not attaching document to recipient

Thread begun 8/11/2009 1:29 pm by admin140217 | Last modified 8/13/2009 4:26 pm by Jason Byrnes | 3078 views | 3 replies |

admin140217

Universal Email not attaching document to recipient

Hi All,

I'm using Universal email in a PHP site and I have gotten the mail to send and CC to whom it supposed to on Godaddy but I'm having two problems.


1st problem, the form only has 4 fields Name, Company, Email, and a checkbox. Only two fields are being passed to the body of the email.

2nd problem, The email is supposed to send a document attachment to the recipient after form submission, I can see it's trying to attach the document in Godaddy but ut stops there and doesn't get passed to the recipient.

The URL is index_new.php

I'm not real familiar if at all with PHP, can someone shed some light on this for me and help to solve these issues?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

I will need to examine the code on your page to be able to see what is wrong. I have submitted a technical support ticket for you. Please respond to the support ticket by logging into your support history:
supporthistory.php

Sign in to reply to this post

admin140217

Thanks Jason, I will do that.

Sign in to reply to this post

Jason ByrnesWebAssist

in debugging this issue we found that the reference to the file was not quite correct. We changed:

php:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/docs/Special-Report_Top-3_Mistakes.pdf");



to:

php:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,realpath("docs/Special-Report_Top-3_Mistakes.pdf"));



To get the file attached. In this case, it was coming through with a .dat file extesnion however.

We found that there where some missing semi colons in the WA_UniversalEmail\Mail_for_Linux_PHP.php file that was shipped with Universal Email 2.8.

I changed lines 234 - 236:

php:
$mailAttachments .= " name=\"".basename($fileArr[3])."\"".$lineEnd;
$mailAttachments .= "Content-Transfer-Encoding: ".$fileArr[1].$lineEnd;
$mailAttachments .= "Content-Disposition: inline";



to:

php:
$mailAttachments .= "; name=\"".basename($fileArr[3])."\"".$lineEnd;
$mailAttachments .= "Content-Transfer-Encoding: ".$fileArr[1].$lineEnd;
$mailAttachments .= "Content-Disposition: inline;";





to fix that problem.

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

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