Jump to content


Using Swift Mail with file attachments

  • Please log in to reply
No replies to this topic

#1 PattyB

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 26 October 2006 - 06:47 PM

Hi all,

I am trying to make a user-uploaded file attachment with Swift and read here http://forums.devnet...p=323522#323522 to do it this way:

Upload the file, using $_FILES['form_field_name']['tmp_name'] as the path:

$swift->addAttachment($_FILES['foo']['tmp_name'], $_FILES['foo']['name'], $_FILES['foo']['type']); 

I get the file to attach and send however when I open the files all that is in it is:


Anyone know what is causing this?


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users