How in the world do I incorporate a PHP email into my canvas project?
All I want is a button, when you press that button the site that I'm hosting sends an email to me with all the info the user put in
literally synonymous with a contact form
currently, this is what I've got going on:
this.button_1.addEventListener("click", TestFunction.bind(this));
function TestFunction()
{
<?php
// the message
$msg = "test_Message";
// use wordwrap() if lines are longer than 70 characters
$msg = wordwrap($msg,70);
// send email
mail("someone@example.com","My subject",$msg);
?>
}
side note:
maybe an easier answer for this is, how do you cherry pick the important parts from javascript
tutorials? like I never see:
<!DOCTYPE html>
<html>
<body>
in HTML canvas documents, but they're always in java script tutorials,
leaving me to believe they're not necessary for canvas projects.
What parts do i incorporate into my code and what parts can I omit?
Thanks a million!
-Joey W
