php - Codeigniter mail library, fifth parameter error -


the company hosts web site has disabled fifth parameter in mail(), , can´t activated. wonder why that? security risk?

i use codeigniter when i´m developing. when use mail library following php warning: "mail(): policy restriction in effect. fifth parameter disabled on system". wonder how should write code don´t warning.

this code looks today:

$this->load->library('email'); $this->email->from('my e-mail', 'web site´s name'); $this->email->to('an e-mail'); $this->email->subject('a subject'); $this->email->message("a message");  if ($this->email->send()) { } else { } 

what need change avoid warning? help!

this because php running in safe mode, can add '@' before function call causing warning there's nothing can (i guess you're on shared host).

example:

@functioncauingwarning($param1, $param2); 

of course that's if it's working warning.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

java - stack overflow exception on xml transformation -