Welcome Guest, Not a member yet? Register   Sign In
Mail function problem
#1

[eluser]Unknown[/eluser]
Hello!

I have some odd problem i have something like this in function:

Code:
$this -> load -> library ('email');
        
$this -> email -> from ('[email protected]', 'Newicz');
$this -> email -> to ('[email protected]');
$this -> email -> subject ('Testing message');
$this -> email -> message ('some kind of text');
$this -> email -> send();
        
echo $this -> email -> print_debugger();

and debugger print this:

Quote:Your message has been successfully sent using the following protocol: mail

From: "Newicz"
Return-Path:
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Testing_message?=
some kind of text

But i have no mail on my inbox... i checked spam folder too nothing...

Please help me!

regards,
newicz
#2

[eluser]$ilovephp[/eluser]
Did you set the configuration in sending mails?

to configure it manually, (using gmail as server)

Code:
$config = array(
    'protocol'=>'smtp',
    'smtp_host' => 'ssl://smtp.googlemail.com',
    'smtp_port' => 465,
    'smtp_user' => '[email protected]',
    'smtp_pass' => 'password_here'
    );
    
    $this->load->library('email', $config);
#3

[eluser]dmorin[/eluser]
Also, many ISPs block subscribers from sending email locally. If that's the case, you should use something like the previous post to send through Google's or another mail server that you have access to.




Theme © iAndrew 2016 - Forum software by © MyBB