$file_path should be the full path to the file Swift needs to attach. It can't attach a directory
I had a look over the documentation (it looks poorly written by the way with short_tags and register_globals) and couldn't find what I was looking for so I'm going to take a completely wild stab in the dark and say to try this:
That's not an error message. It's the var_dump() stuff I asked you to add before. Just remove the calls to var_dump(). I've removed them in my code above.
bit of a random one, but may i ask what your day job is?
Thank you Much appreciated.
Surprise you it may not, but I'm a PHP Developer. I'm sat in my office right now, browsing DevNet when I should be working but the sun out of my window is telling me to get up and go home.
what sort of stuff are you ment to be working on then?
im afraid i may need your help again - emails and attachments work great, however, when i try and send emails to certain addresses the emails do not seem to come through!
i know it does not really make sense because in theory if you can send an email to one address you should be able to send an email to any address, right?
but if you are trying to send an email to a different domain for example, can this cause problems?
I work on a system which stores and analyses behaviour records for schools in the UK. It's *yawn* really fun *yawn* of course.
Sounds like the mail server you're connecting to is not an outgoing relay server. Many SMTP servers are simply configured to accept mail for their own domains only (take Hotmail's servers for example). Ask your host what the name of their outgoing SMTP server is It may be that you have to use the Sendmail connection instead if it's a linux server.
sounds interesting - are you well paid for your skills(if you dont mind me asking)?
I am pretty sure we are using linux servers - I'm not quite sure that I follow you though about the hotmail thing though, as they receive mail from any account?(sorry for saying such a stupid thing as you clearly know what your talking about)!
alright mate, have used the sendmail command and that has sorted my email problems, however there is yet another problem (the last one i promise!)
basically the email & attachments are sent to an online database which then puts them in a queue of jobs to do - however - the database keeps returning emails saying there was nothing attached to the email when there blatantly was?! does swift attach things differently to normal? cheers dude
AshP wrote:sounds interesting - are you well paid for your skills(if you dont mind me asking)?
Sadly not. Well... It depends upon what you consider well-paid I guess The project is currently mostly supported by external funding so pulling salaries from that doesn't leave much for us.
Swift doesn't attach things differently to normal no. I'd have to see the code to understand how you're dealing with this.
have kind of sorted out the whole mailing problem now, howveer have anoter problem (nothing to do with swiftmailer i dont think, but you seem to know everything!)
basically i am not able to upload a file that is over 2MB
At first i thought it was somthing to do with the php.ini file (as its default setting is to not allow any uploads over 2MB) so i got my host to change the max_upload setting to 10mb, this has not fixed the problem however.
I then thought maybe it was to do with the max_input_time so I added set_time_limit(120); to my script but this has not sorted it....
Any ideas dude?
also i may possibly have some work on the side for you if it would be something you were interested in (and it comes through!)?