CodeIgniter Forums
Trouble sending attachments in email - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Trouble sending attachments in email (/thread-20907.html)



Trouble sending attachments in email - El Forum - 07-25-2009

[eluser]intoitdaily[/eluser]
This is so weird... I've done this before in other projects, and I've copied the code from there, but it doesn't work in this project.

Here's the debugging message

Unable to locate the following email attachment: docs/FloodInsurancePamphlets.pdf
Your message has been successfully sent using the following protocol: sendmail

In my other projects, I have the same directory 'docs' in the same location (the webroot) but for some reason, it can't find the documents to attach (and they ARE there, and the permissions for the files and directory are all correct)...

I thought it had something to do with the .htaccess file, but it's no different than the one I used in other projects, where I can successfully send email attachments...

I'm baffled.. Why wouldn't this work? What should I try?

Do you guys want any of my code to look at?


Trouble sending attachments in email - El Forum - 07-25-2009

[eluser]Tyler Diaz[/eluser]
Quite Odd, I'll take a shot at the code. Post in the controller function to the mail send.