-----------------------------------------------------------------(this is mailer.php)--------------------------------------
 
 
 
<p>Send email to:<input name="to" type="text">
<p>Send email from:<input name="from" type="text">
<p>Set answer adress:<input name="reply" type="text">
 
Attachment:
Subject of the email:
The email:Write email here...
 
<p><font face="verdana"><input type="submit">
<p><font face="verdana"><input type="reset">
<form action="index.html">
<input type="submit" value="Back to homepage">
</form>
-----------------------------------------------------------------(this is process.php)--------------------------------------
<?php$to = $_POST[“to”];
$subject = $_POST[“subject”];
$message = $_POST[“message”];
$from = $_POST[“from”];
$reply = $_POST[“reply”];
$headers = “From: $from \r\n”;
$headers .= “Reply-To: $reply \r\n”;
$headers .= ‘X-Mailer: PHP/’ . phpversion();
mail($to, $subject, $message, $headers);
?>
In mailer.php i have a form called “attachment”. In process.php i need the code that sends that attachment with the email.
Thanks for helping me out.