This topic is locked

Sending email with attachement

5/5/2025 9:14:29 AM
PHPRunner General questions
R
Rudy Lambrechts author

I have an issue with sending an email with an attachment. When I upload a file via the add_page (e.g., test.pdf) to the files/ directory, the file is renamed on the server to something like test_ppc96kij.pdf. As a result, this file is not recognized as the email attachment. Is there a solution for this? Thank you.

Admin 5/5/2025

When you attach the file you need to use the actual physical file name as test_ppc96kij.pdf. This file name is stored in the database along with other info about this uploaded file in JSON fomat.

The following article explain how to parse this JSON file info and work with it:
https://xlinesoft.com/phprunner/docs/rename_uploaded_file.htm