homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Using form to send mail with PDF attachment
Robert Poole

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

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)

The PHP Mailer class has functions for sending attachments:


Robert Poole

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

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved