Can someone please tell me how to properly use external libraries. From what I found in the forums you have to:
- Use the tools/external libraies
- create your libray
- Upload the php files
I completed all the above.
I know that SC provides mail macros, but I am just using the PHPMailer to learn how to use external libraries.
I created a blank app an using this code to test in the “onExecute” Event.
sc_include_library(“prj”,“phpmailer”,“phpmailer.php” , “true”, “true”); <-- no problem, finds the file
$mail = new PHPMailer; <-- Get the error below
error:
Class ‘PHPMailer’ not found
What step am I missing???