Welcome Guest, Not a member yet? Register   Sign In
Not receiving Emails: $this->email->send() vs. mail()
#1

[eluser]Unknown[/eluser]
Hi all,

I have problems with receiving emails, sent out of a controller.

the email library is loaded and I also have an email configuration file under application/config/email.php

application/config/email.php:
Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');

$config['protocol'] = 'mail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['priority'] = 1;

controller code:
Code:
$this->load->library('email');
$this->email->from('[email protected]', 'My name');
$this->email->to('[email protected]');
$this->email->subject('Subject');
$message = '<p>Test Message</p>';
$message .= '<p><a href="'.base_url().'">Click here</a></p>';
$this->email->message($message);
$this->email->send();

I also trying to send an email with this:
Code:
$receiver = '[email protected]';
$subject = 'Subject';
$message= 'The message';
$header = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($receiver, $subject, $message, $header)

Now the only email i am receiving it the email sent via mail() the other email sent via $this->email->send() does not arrive.

but $this->email->print_debugger() is telling that the email has successfully been sent.

what is the probleme here? can anyone please help me out?
(sorry for my bad english)
#2

[eluser]leet_2k[/eluser]
I think you and I might have same problem.

http://ellislab.com/forums/viewthread/230570/

Let me know if you find anything. See what I gave done and let me know what happen s




Theme © iAndrew 2016 - Forum software by © MyBB