PHP Classes

problem sending attachment

Recommend this page to a friend!

      Attachment Mailer  >  All threads  >  problem sending attachment  >  (Un) Subscribe thread alerts  
Subject:problem sending attachment
Summary:attachment problem
Author:luca carboni
Date:2011-08-12 09:44:25

  1. problem sending attachment   Reply   Report abuse  
luca carboni - 2011-08-12 09:44:25
Hello, I used your class to send html emails with attachments that is simple and clear.

But I have problems with the function:
$ mailer-> file ("example.php");

When I load a local file with a field:
<input type="file" name="attach">

I don't know if in the function to attach the file I need to enter the temporary file or the name of the file:
$ mailer-> file ($ _FILES ['attach'] ['tmp_name']);
$ mailer-> file ($ _FILES ['attach'] ['name']);

You can help me solve my little doubt? Thank you Sincerely, Luke