Hi Guys,

Been trying to figure this out over the last few days but I've no idea
what's happening, issue is I can't get the application to send an email
(password reset by email token).

Am on
CentOS 6.5
PHP 5.5
Apache 2.2
Self Service Password 0.8-1

Some tests:

sudo -u apache php -r 'mail("[email protected]", "Test subject 2", "Test
Body", "hellooooo", "[email protected]");' -> Works
Create a php file and enter the mail function as above, then visit the page
from ssp root -> Works

Within SSP, click to email token, enter username and email address, submit
-> SSP page with just the logo (no messages)
Website error log:

http://ssp.dev.domain.com/index.php?action=resetbytoken&token=44:HWGLgpbGU7urwKPNInmujn243BHY985gAueN6bKMBIc=adRqXBjimh7LyTHCcL7X4pSMyzyNpmoUAMg=,
referer: http://ssp.dev.domain.com/?action=sendtoken
(nothing appears in /var/log/maillog)

Have tried both with postfix and sendmail, amended /etc/php.ini sendmail
path:
;sendmail_path = /usr/sbin/sendmail -t -i
sendmail_path = /usr/sbin/sendmail.postfix -t -i

Selinux is off, firewall off.

It looks like it doesn't even try to send an email, I tested by using your
error_log function to print a message before and after the function call:


    error_log("before ==== ");

    # Send message
    if ( send_mail($mail, $mail_from, $messages["resetsubject"],
$messages["resetmessage"], $data) ) {
        $result = "tokensent";
    } else {
        $result = "tokennotsent";
        error_log("Error while sending token to $mail (user $login)");
    }
    error_log("after ==== $result ====");

In the log I can see the "before ====" message but not after.

Any ideas?
_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to