Welcome Guest, Not a member yet? Register   Sign In
[solved] Email Class - sending email twice (unwanted)
#1

[eluser]eakroko[/eluser]
hello,

i have a problem with the Email Class.
I simply want to send an email to a client.
Here is my code:
Code:
$this->load->library('email');
$config['wordwrap'] = TRUE;

$this->email->initialize($config);
$this->email->from('[email protected]', 'My-Name');
$this->email->to('[email protected]');
$this->email->subject("test-email");
$this->email->message('test');    

$this->email->send();

echo $this->email->print_debugger();

This works fine at localhost.
But on my server it sends the Email to the [email protected] AND to me ([email protected]). I don't know why I also get the email.

If I use php mail() function it doesn't send the email twice. So it has to do something with Codeigniter Email-Class.

I would appreciate help.


Edit:
with
Code:
$config['protocol'] = "sendmail";
there is only one email sending. But this one arrives at the FROM-adress and not at the clients adress.

Is there maybe a problem with my servers settings? When yes, why php mail() function is working ?

Thanks


Messages In This Thread
[solved] Email Class - sending email twice (unwanted) - by El Forum - 08-08-2011, 02:32 AM
[solved] Email Class - sending email twice (unwanted) - by El Forum - 08-08-2011, 08:59 PM
[solved] Email Class - sending email twice (unwanted) - by El Forum - 08-09-2011, 01:17 AM
[solved] Email Class - sending email twice (unwanted) - by El Forum - 08-09-2011, 01:33 AM
[solved] Email Class - sending email twice (unwanted) - by El Forum - 08-09-2011, 01:40 AM
[solved] Email Class - sending email twice (unwanted) - by El Forum - 08-09-2011, 04:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB