Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Using form to send mail with PDF attachment


Robert Poole

10:38 am on Sep 20, 2007 (gmt 0)

5+ Year Member

Hey there webmaster team. This week I've been banging my head into a wall with this problem:

I have a form to be filled in by the user, which includes an upload file feature. This is going to be a PDF but I haven't restricted it to this thus far. Anyway, this PDF is uploaded and an email is sent to the administrator, but I want to send this PDF as an attachment in this email.

So far I've managed to send a PDF as an attachment, but not part of this form. The upload part is fine, I just can't intergrate the PDF attachment into the email in this form.

I was wondering if anyone had any scripts lying around which dealt with this issue; just reading in the users selected file and attaching it to an email.



10:59 am on Sep 20, 2007 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

The PHP Mailer class has functions for sending attachments:


Robert Poole

11:05 am on Sep 20, 2007 (gmt 0)

5+ Year Member

Okay, so what's my php.ini include_path?

Featured Threads

Hot Threads This Week

Hot Threads This Month