Send Email with PHP
Loading...
8,990
Loading...
Uploader Comments (waltdesignanddevelop)
see all
All Comments (16)
-
@waltdesignanddevelop You can seperate HTML and PHP, instead of making 1 big mess. Search up templatepower if you haven't already.
-
@waltdesignanddevelop ok thanks
-
thanks very USEFUL ... code
Loading...
i dont understand why the header and footer.php files are referenced @ :10. i dont have any files by that name and theres no coding of those in this video.....anyone?
drummerjacob 1 month ago
@drummerjacob Those are if you were displaying a web page, you can put the top part of the page in 'header.php' and the bottom part of the page in 'footer.php'.
They are not required to make the script run.
waltdesignanddevelop 1 month ago
Hello, is there a code where I can make them set who they want to send the message to?
AustinMutschler 1 month ago
@AustinMutschler You can add a form field to collect an email address, and then reference that in the mail command. A simple version would look like:
mail ($_POST['toEmail'], '[[Subject]]', '[[body]]'); // replace subject and body with your actual text.
waltdesignanddevelop 1 month ago
Great tutorial for someone who knows nothing about how to set this up.
Its a good practice to differentiate between when you are using curly brackets and round brackets because its impossible to see in a video.
Again, thanks for this video especially setting up the if statements.
drmcgog 6 months ago
@drmcgog Good point about mentions which type of characters are being typed for when someone isn't viewing full screen. I'll work on that for future tutorials.
waltdesignanddevelop 5 months ago