I will hold my hands up and say now that I am quite new to all this PHP & coding banter, however I am a fast learner, have come a long way in the last few weeks & would be very grateful of any help you can give me!
Basically, I am trying to use swiftmailer to email uploaded forms including multiple attachments.
I have followed the tutorial on the swiftmailer website (for creating a form & emailing its contents) and managed to get the email part working with no problems (eventually...) however, after quite a few hours now i am still struggeling to get attachments to work at all.
I think this may possibly be due to the way in which I am uploading the attachments in the first place, as I am using Rad upload for the attachments, as opposed to just using the standard method for form attachment. This unfortunatly is nessecary as the end product needs to be as simple to use as possible (Rad is very easy to use with drag & drop interface).
The best I have done so far is to receive an error message:
I am guessing the problem is with the way in which rad uploads the data, however the end product of rad is that I end up with a copy of any uploaded files in the php /tmp/ directory and an additional directory within the website /uploaded/ - as far as i am aware, swiftmailer uses the php tmp/ file so I am not quite sure as to why it does not work??>Fatal error: Uncaught exception 'Swift_FileException' with message 'No such file 'Array'' in /public_html/swift/Swift/File.php:63Stack trace:#0 /public_html/swift/Swift/File.php(51): Swift_File->setPath(Array)#1 /public_html/web/upload.php(127): Swift_File->__construct(Array)#2 {main} thrown in /public_html/swift/Swift/File.php on line 63 >
If anyone could help me get this going i would be very grateful indeed as it is starting to give me a headache!
thanks for any response[/quote]