This is a free PHP tutorial to send mail code-oh, is the basic PHP itself upload function
<html>
<head>
<title> Letter to network management </title>
</head>
<body>
<H2 align= "Center" > Network Management Receipt </h2><br>
<hr><br>
<center>
<form action= "mail.php" >
Sender: <input type= "text" Name= "from" size=25><br>
Topic: <input type= "text" name= "subject" size=20><br>
Content:
<textarea name= "Content" cols=80 rows=15> Hello, webmaster:</textarea><br>
<input type= "Submit" value= "send" > <input type= "reset" value= "rewrite" ><br>
</form>
</body></html>
PHP code
<?php
if (empty ($from) or empty ($subject) or empty ($content)) {
echo is not completed, please <a href= ' mail.html ' > Return </a> ";
}
$body = "[subject] $subjectn";
$body. = "[sender] $fromn";
$body. = $content;
$deal =mail ("guoanyuan@eyou.com", $subject, $body, "from: $from");
if ($deal) {echo sent successfully! ";} Else{echo "Send a piece of failure www.jzread.com!!! ";}