Hello Everyone, I hate to trouble you all with something that used to work for me.
PHPMailer. I have imported it into my external libraries as shown in my uploaded images. I believe my code references these files correctly but they error when loaded.
Can someone please point me in the right direction? I have spent all morning on this and still no success.
Thank you,
Bill Walker
Can you show us which error is appearing to you?
Yeah, sorry about that.
I’m just getting a blank page. The ‘echo’ statement is never executed.
Thanks for your response.
If I comment out the 3 sc_include_library statements the echo line will execute but if I uncomment just one sc_include_library I get the ‘Page isn’t Working’ error.
Everything else on the page is commented out.
This PHPMailer is an external library located in your project or is in public location?
Yes, it is in my Projects, The name is ‘PHPMailer’ and the files are in the src folder.
GOT IT!
My sc_include_library parameters was not correct.
Should have been
'sc_include_library(“prj”, “PHPMailer”, “PHPMailer/src/PHPMailer.php”, true, true);
And not:
sc_include_library(“prj”, “PHPMailer”, “src/PHPMailer.php”, true, true);
I think I can get the rest of it going from here.
Thank you for all your help.