Welcome Guest, Not a member yet? Register   Sign In
Attchment won't be sent if name contains spaces

Hi guys, I've just found a problem in using the Email library. If the attachment name contains spaces, the attachment won't be sent with the email text. so:

$this->email->attach("path/to/attachment"); //attachment cannot contain spaces

Is there any solution to this? Even if the attachment name is quoted, it doesn't work.
thank you!

Use the CodeIgniter - Inflector Helper

To check the file name first for spaces.


CodeIgniter Users Guide - underscore
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB