Form to email attachment

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'd like to add a form that will email a file attachment to me.
Can anyone recommend a decent free script?


Re: Form to email attachment

abracad wrote:
Quoted text here. Click to load it

Here's a stripped down version of what I've been using

     $headers.='From: '.$_POST['email']."\r\n".
              'X-from: '.$_POST['email']."\r\n".
              'ReturnPath: '.$_POST['email']."\r\n";

$message='The following message contains a file'.
     'attachment that was posted via a form.';
$subject='Posted attachment';

// this file is available at:
include 'class.html.mime.mail.class';

$mail=new html_mime_mail();
if(isset($_FILES['attachment']) && $_FILES['attachment']['error']==0){

Justin Koivisto -

Site Timeline