More information about the Underscore mailing list

[_] help with sendmail and attachments

Oliver Humpage oliver at watershed.co.uk
Fri Dec 1 10:11:12 GMT 2006

On 1/12/06 10:04, "Duncan Glendinning" <d.glendinning at gmail.com> wrote:

> Right, got phmailer working, except for attachments.. Can't seem to
> find out how I can get the file uploaded to the tmp or whatever, as it
> seems not to deal with that part of the script, and already assume the
> file is up there.

First, make sure your form is enctype="multipart/form-data".

Then just use $_FILES['form_name_of_file']['tmp_name'] as the file to give
to PHPMailer. I'd have thought (never having used phpmailer).

http://www.tizag.com/phpT/fileupload.php has more info.

Oliver.