system — 2013-10-05T07:14:21-04:00 — #1
What is the syntax to send a mail in PHP.
rubble — 2013-10-05T08:28:07-04:00 — #2
Try checking the manual. Write some code and if you have a problem come back and post your code for some help.
ralphm — 2013-10-05T08:53:14-04:00 — #3
There are many free PHP form to email scripts available online, so you could google that as well.
dresden_phoenix — 2013-10-06T03:09:29-04:00 — #4
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.
help1 — 2013-10-07T03:55:53-04:00 — #5
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.";
dreamdezigns1 — 2013-10-07T05:56:43-04:00 — #6
Basic syntax for sending mail in php