Path to Attachment Folder Fails[Newbie] |
[eluser]Unknown[/eluser]
Hi, Created an "attachments" directory inside "application" attempted using the following to send attachment. ----Config.php----- Code: $config['base_url'] = 'http://localhost:8888/CI/netuts_day_03/index.php/'; ----Config-email.php------ Code: <?php if ( !defined('BASEPATH')) exit('No direct script access allowed'); ----Email-Controller----- Code: $path = $this->config->item('server_root'); The following error is returned: Quote:Your email was sentUnable to locate the following email attachment: /Applications/MAMP/htdocs4/netuts_day_03/attachments/myattach.txt Also the message is not sent when this failure occurs. Commenting the attach() out sends the message. I've changed the permissions, on both folder and file, stumped. MAMP 1.9.5 OSX 10.5.8 CI 2.0.3 |
Welcome Guest, Not a member yet? Register Sign In |