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

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:


Code:
$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!
Reply
#2

Use the CodeIgniter - Inflector Helper

To check the file name first for spaces.

SEE:

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

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB