I am kind of new web programming, having just created my first website on dreamhost.
I created a form which sends information to a database, and I would like to send the same information to an email. The script which is run when ‘submit’ is clicked is a perl script, and I would like to add something to send a simple email with the variable I have already created.
I found documentation on how you can send mail in PHP, but I have never written anything in PHP, and I don’t know if there is a way to run a PHP script from my perl script. Is that possible? Otherwise, does Dreamhost support any type of email from a Perl script? I tried running the unix mail command like:
mail ...; but that does not work. I also tried sending the PHP code to the HTLM output, and it looks, but I guess PHP is not run like that.
Thanks for any help!