I am working on asp.net project. I am trying to send mail using php script (as godaddy is not allowing me to use c# sendmail()). I have to pass subject and body parameters to the mail.
I am able to send parameters to separate php file however I want to do it with inline php. following code works fine but not sure how to pass parameters
<html>
<head>
<script>
function sendmyMail(){
<?php
mail("mymailid@gmail.com","mySubject","mybodytext","From: \" abc \"");
echo "Notification Sent!";
?>
}
</script>
</head>
<body onload=sendmyMail();>
</body>
</html>
Any help will be appreciated.
Regards Nikunj