Jump to content

email with PHP


macKeet

Recommended Posts

I guess it would help

 

<?php

$to = "[email protected]";

$date = date('l dS \of F Y h:i:s A');

$msg = "Order from your site\nName: ".$_POST['name']."\nTelephone: ".$_POST['tel']."\nEmail: ".$_POST['email']."\nDetails: ".$_POST['details']."\nDate: $date";

mail($to, "Order", $msg);

echo "code=ok";

?>

 

Regards

Link to comment
https://forums.phpfreaks.com/topic/42930-email-with-php/#findComment-208512
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.