Think about Loose Coupling | |
PerlMonks |
Re: Calling a PHP function from within Perlby tobyink (Canon) |
on Jul 27, 2019 at 21:00 UTC ( [id://11103516]=note: print w/replies, xml ) | Need Help?? |
Probably your best bet is to write a helper script called something like sendMail-cli.php something like this:
And then from Perl, you can pass data to that:
There are probably nicer ways to do it, but that's quick and easy. Code is untested, but should give you a general idea. (For bonus points, make sure that sendMail-cli.php cannot be called directly via your webserver, to avoid creating a spam gateway.)
In Section
Seekers of Perl Wisdom
|
|