Email attachments unable to locate files |
[eluser]Ngulo[/eluser]
Hi guys, i'm trying sending attachments files in email : all is working but and email arrives but attachments shows this error: Code: Unable to locate the following email attachment: http://www.asd.com/files/file.pdf if i go to file url (http://www.asd.com/files/file.pdf ) by browser i can see that file!! anyone can help me? my email script is simple: Code: if($_FILES['bill_file']['tmp_name'] and $_FILES['bill_file']['name']) so just to explain my script, first of all i upload and move file into main folder, then i create email , take created file and attach that to email and in the end i send email... my folders are all 775 really don't know why anytime the file is created but not attached thanks to anyone can help me guys
[eluser]Atharva[/eluser]
That's coz you are using absolute path. You need to use relative path. See following statement from the guide Quote:Note: Use a file path, not a URL. Code: $this->email->attach('/path/to/photo1.jpg');
|
Welcome Guest, Not a member yet? Register Sign In |