07-14-2012, 05:09 AM
[eluser]sushi[/eluser]
Thanks again insiteFX, the issue has been solved by accident.
As we can see,
$path = $this->config->item(‘server_root’); [defined in the config.php]
The 'server_root' really gives you up to the server's root! It is so wonderful.
And do you know what? My project is in a project folder within root, and day1 is within that project folder, so the following snippet
$file = $path . ‘/day1/attachments/somenote.txt’; is missing a folder in front of day1!!!!
This is why I said the email suddenly doesn't work properly, because before I moved email file into a project folder it is bared under the root!
Any way there is not an issue, codes were perfect.
Thanks a lot for your help.
Thanks again insiteFX, the issue has been solved by accident.
As we can see,
$path = $this->config->item(‘server_root’); [defined in the config.php]
The 'server_root' really gives you up to the server's root! It is so wonderful.
And do you know what? My project is in a project folder within root, and day1 is within that project folder, so the following snippet
$file = $path . ‘/day1/attachments/somenote.txt’; is missing a folder in front of day1!!!!
This is why I said the email suddenly doesn't work properly, because before I moved email file into a project folder it is bared under the root!
Any way there is not an issue, codes were perfect.
Thanks a lot for your help.