close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Attaching file

Thread began 9/18/2022 3:38 am by yogastudents362523 | Last modified 9/20/2022 9:22 am by Ray Borduin | 95 views | 2 replies |

yogastudents362523

Attaching file

Hello,

I have successfully taken people through an on-line contract signing process.
I am successfully sending them an email containing a link to the signed contract.
I am also successfully using File Manipulation to download a copy to my own local computer, for my owjn records.

My preference would be to attach the contract to the email (rather than only providing a link.
However, I cannot find the correct value to put in "Entered Value" of the SendEmail or Universal Email attachments menu.

And I also cannot select the "Submitted File" option in that same menu because no matter what values I put in the Form, that option remains greyed out in Send Email, and so I cannot select it.

Thank you.

I attach the file.

Attached Files
presenters_switchboard_organizers_contract_done.php
Sign in to reply to this post

Ray BorduinWebAssist

"submitted file" is for when someone has a file upload form field and you attach that file to an email.

Try moving this code above the email code:

php:
<?php     

$presenters_signature 
$rsAllPresenterData->getColumnVal("PresentersSigningID") ;  
$presenters_signature html_entity_decode(strip_tags($presenters_signature));
$presenters_signature chop($presenters_signature,"<br />");
// $presenters_signature = substr_replace($presenters_signature ,"",-8) ;
    
$presenters_sign_url html_entity_decode($rsAllPresenterData->getColumnVal("PresentersSigningURL")) ; 
$presenters_email $rsAllPresenterData->getColumnVal("EmailAddress1") ;
$presenters_name $rsAllPresenterData->getColumnVal("Last") . '_' $rsAllPresenterData->getColumnVal("First"); 


// $client = new HelloSign\Client($my_api_key); // already instantiated above, before header
// $signatureRequestId = "d196f6c74248650f89a305d1d7eaa26b";
                  
                  
$dest_file_path $_SERVER['DOCUMENT_ROOT'] . '/presenters/contracts/' ;
$dest_file_name $presenters_name '.pdf';
$dest_file_download $dest_file_path $dest_file_name ;
$dest_file_download html_entity_decode(strip_tags($dest_file_download));
$dest_file_download chop($dest_file_download,"<br />");
// $dest_file_path = substr_replace($dest_file_path ,"",-6) ;
                  
// $client = new HelloSign\Client("fb31abf96d768b94bcd6751d977d1147a81bd7b56643d3444cbc1d54a47d1a93");  
                  
// $client->getFiles('21b750a9c435680f8c14d736a2dba09d7259e313', $dest_file_path, HelloSign\SignatureRequest::FILE_TYPE_PDF) ;
                  
                  
$saved_signature_request_id $rsAllPresenterData->getColumnVal("SignatureRequestID") ; 
                                    
                 
// $client = new HelloSign\Client("fb31abf96d768b94bcd6751d977d1147a81bd7b56643d3444cbc1d54a47d1a93"); 
                  
$client = new HelloSign\Client("$my_api_key"); 

                  
// $client->getFiles('c49a4555324716dc387b498502a546638d281d03', $dest_file_path, HelloSign\SignatureRequest::FILE_TYPE_PDF) ; 
                  
$thisiswhattodownload $client->getFiles($saved_signature_request_id$dest_file_downloadHelloSign\SignatureRequest::FILE_TYPE_PDF) ;
                  
/*
                  try {
    $result = $client->getFiles('21b750a9c435680f8c14d736a2dba09d7259e313', $dest_file_path, HelloSign\SignatureRequest::FILE_TYPE_PDF) ;
    print_r($result);
    
} catch (HelloSign\Error $e) {
    $error = $e->getResponseObject();
    echo "Exception when calling HelloSign API: "
        . print_r($error->getError());
}
*/
$downloadable_file "https://www.navayogimarga.com/presenters/contracts/" $dest_file_name ;
$attach_path "../presenters/contracts/" $dest_file_name ;
?>



Then you can add the attachment as <?php echo($attach_path); ?>

Sign in to reply to this post
Did this help? Tips are appreciated...

yogastudents362523

Thank you very much.

That is now working just fine!

With every good wish
KB

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