Good Evening Couch.
I know there is default mailer inside couch. But i just wanna know, how can i make php mailer editable.
i wonder how can i make the "$to = "your mail"; /*Your Email*/" & "$subject = "Your subject"; /*Issue*/" editable like default couch mailer.
I know there is default mailer inside couch. But i just wanna know, how can i make php mailer editable.
- Code: Select all
<?php
$to = "your mail"; /*Your Email*/
$subject = "Your subject"; /*Issue*/
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$Email=$_REQUEST['Email'];
$msg="
Name: $_REQUEST[Name]
Email: $_REQUEST[Email]
Phone: $_REQUEST[Phone]
Message sent from website on date $date, hour: $time.\n
Message:
$_REQUEST[message]";
if ($Email=="") {
echo "Please enter your email";
}
else{
mail($to, $subject, $msg, "From: $_REQUEST[Email]");
echo "Thank you for your message";
}
?>
- Code: Select all
<form id="form" action="php/send_mail.php">
.....................
</form>
i wonder how can i make the "$to = "your mail"; /*Your Email*/" & "$subject = "Your subject"; /*Issue*/" editable like default couch mailer.