What is the syntax to send a mail in PHP.
Try checking the manual. Write some code and if you have a problem come back and post your code for some help.
There are many free PHP form to email scripts available online, so you could google that as well.
You could use something like this:
mail($to, $subject, $message, $headers);
where $header is a "\r\
" separated list of string segments such as: "From: firstname.lastname@example.org \r\
Reply-To: email@example.com \r\
Do keep in mind that mail() requires that you actually have host permission for this.. so testing in a local PHP install environment is not a good idea.
Use this code in Php section
$to = "firstname.lastname@example.org";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "email@example.com";
$headers = "From:" . $from;
echo "Mail Sent.";
Basic syntax for sending mail in php
This topic is now closed. New replies are no longer allowed.