Create Send E Mail Form PHP

  • Create a file called sendmail.html, copy the data below into it and upload it
<form method="post" action="sendmail.php">
From Email: <input type="text" name="fromemail" /><br />
To Email: <input type="text" name="toemail" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>

  • Create a file called sendmail.html, copy the data below into it and upload it
<?
  $fromemail = $_REQUEST['fromemail'] ;
  $toemail = $_REQUEST['toemail'] ;
  $message = $_REQUEST['message'] ;

    mail( $toemail, "Feedback Form Results",  $message, "From: $fromemail" );
print "mail sent";
?>
<br>
<a href="sendmail.html">back</a>

  • Surf to the HTML page

Back to PHP

All Pages

Email

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

ASP.NET

Persits ASPUpload

Wiki Help

  Page Info My Prefs Log in
This page (revision-2) last changed on 18:29 12-Jan-2007 by Administrator.
 
Page Hit Count: 42

Referring Pages:
...nobody

JSPWiki v2.4.71