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.php, 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

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-2) was last changed on 24-May-2017 15:30 by Hyve Support
G’day (anonymous guest) My Prefs
  • View Page Source
  • This clear IPSec security association,
    clear ipsec sa peer X.X.X.X
    

All Pages

Page views: 2070

Private Tomcat

Linux

MySQL

Email

SQL Server

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

Gaming

ASP.NET

Persits ASPUpload

Wiki Help

Referring Pages:
...nobody

JSPWiki v2.8.1