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!!!
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!!!
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.
function.realpath.php
it will end up looking something like:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,realpath("/home/u7200157/tylattimorexxx.com/tour/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]) ."");
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.
I looked at your WAUE_application_1.php file.
You have:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult1"][""] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult2"][""] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult3"][""] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult4"][""] ."");
I think it should be:
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult3"]["serverFileName"] ."");
$WA_MailObject = WAUE_AddAttachment($WA_MailObject,"/home/u7200157/tylattimorexxx.com/temp_upload/".$WA_DFP_UploadStatus["WA_UploadResult4"]["serverFileName"] ."");
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.