Email - from and Return-Path error |
[eluser]dee_smart[/eluser]
Hi there, I have recently joined codeigniter and things have been going smooth so far. I noticed an elementory problem today in Email class. The problem is with the from($from, $name = '') function of the email class. These are the parameters I am passing to "from()" function: $this->email->from('[email protected]', 'mysitename.net'); In from function in Email Class $this->_set_header('From', $name.' <'.$from.'>'); $this->_set_header('Return-Path', '<'.$from.'>'); Here codeigniter is setting the headers for the email by passing values to array _headers. and it should show me an output [From] =>"mysitename.net" <[email protected]> [Return-Path] => <[email protected]> but it is showing me this: Array ( [From] =>"mysitename.net" [Return-Path] => ) I feel the problem is with ' <' , whenever i put this it does not parse the value of $from. Why does it behave like this? do you have any patch to fix this. I need to pass the Return-Path value to ensure the emails do not land in spam folder. Thanks for helping me fix this! |
Messages In This Thread |
Email - from and Return-Path error - by El Forum - 12-10-2007, 04:38 PM
Email - from and Return-Path error - by El Forum - 12-10-2007, 06:02 PM
Email - from and Return-Path error - by El Forum - 12-13-2007, 11:16 AM
Email - from and Return-Path error - by El Forum - 12-13-2007, 11:31 AM
Email - from and Return-Path error - by El Forum - 12-13-2007, 12:18 PM
Email - from and Return-Path error - by El Forum - 11-02-2009, 12:54 PM
Email - from and Return-Path error - by El Forum - 11-02-2009, 02:22 PM
|