Welcome Guest, Not a member yet? Register   Sign In
Redux Authentication Email module
#1

[eluser]movmer[/eluser]
I am having problems sending out emails from the redux module. I don't get any emails from redux. The process just seems to hang and gets timed out.Has anyone encountered a similar issue?


I tried the simple email and that seems to work fine.
Code:
<?php
                
class Email extends Controller {

    function index() {
        $config = Array(
            'protocol' => 'smtp',
            'smtp_host' => 'ssl://smtp.googlemail.com',
            'smtp_port' => 465,
            'smtp_user' => '[email protected]',
            'smtp_pass' => 'password',
        );
        $this->load->library('email', $config);
        $this->email->set_newline("\r\n");

        $this->email->from('[email protected]', 'Your Name');
        $this->email->to('[email protected]');

        $this->email->subject(' Test message ');
        $this->email->message('Hello World');


        if (!$this->email->send())
            show_error($this->email->print_debugger());
        else
            echo 'Your e-mail has been sent!';
        }
}
?>
#2

[eluser]moresided[/eluser]
Just a thought -
there's a separate email config in config/redux_auth.php - I'm assuming your settings are correct there?
#3

[eluser]movmer[/eluser]
Yes. I checked them again.It does not give me any errors just timesout after sometime.
-Thanks
-Movmer
#4

[eluser]moresided[/eluser]
Are you able to use $this->email->print_debugger(); somewhere in the code?
(find the line in redux_auth that is sending the mail and do it there)

If you are in redux_auth you will need to use $this->ci->email->print_debugger();
#5

[eluser]movmer[/eluser]
I did try that. It does not get to the debugger line. It seems to hang at the mail->send()
#6

[eluser]Popcorn[/eluser]
Make sure you load "email" before "redux_auth" in your autoload file.
#7

[eluser]Randy Casburn[/eluser]
Put this :

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

right after your call to:

Code:
$this->mail->send();

It should tell you what you need to know.

Randy
#8

[eluser]mcrafal[/eluser]
The same problem. Redux makes me Email class useless (Protocol: mail, mailtype: html)
I get the same error using totaly basic controller (without redux, but redux library is autoloaded. when I cut redux out from autoload, everything is ok)

Severity: Warning
Message: mail() [function.mail]: Bad parameters to mail() function, mail not sent.
Filename: libraries/Email.php
Line Number: 1428

What to change when _safe_mode = false?
What redux change sending header or others to Email class?
#9

[eluser]JGarrido[/eluser]
Do you get this error just using CI's native email functionality, or only when using AuthRedux? I'm curious, because I do. I've had success with SwiftMailer though. If I can get enough information about this issue, I'd like to submit it as a bug.
#10

[eluser]mcrafal[/eluser]
Native CI funcionality works fine.
After autoload ReduxAuth the same script (using CI email class) makes error and doesnt send mail.




Theme © iAndrew 2016 - Forum software by © MyBB