PattyB Posted October 26, 2006 Share Posted October 26, 2006 Hi all,I am trying to make a user-uploaded file attachment with Swift and read here http://forums.devnetwork.net/viewtopic.php?p=323522#323522 to do it this way:Upload the file, using $_FILES['form_field_name']['tmp_name'] as the path: php: $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:C:\WINDOWS\TEMP\php6E.tmpAnyone know what is causing this?Thanks. Link to comment https://forums.phpfreaks.com/topic/25223-using-swift-mail-with-file-attachments/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.