Loading...
 
Skip to main content

Features / Usability


Re: Errors in share.tpl preventing "Share this page" from working?

I can verify this problem. On my tiki 6.02 installation I can send out a test email fine but the password reset email fails. It appears my smtp server is only accepting CRLFs and not LFs by themselves. I say "appears" because I do not have admin access to the mail server and so I cannot read the logs. Setting the mail end of line to "CRLF" in General Preferences does not seem to do the trick.

Instead what I have done is added the following to tiki-remind_password.php

$body = stripslashes($smarty->fetchLang($languageEmail, 'mail/password_reminder.tpl'));
$mail->setText(str_replace("\n","\r\n",$body));

Right above the following block (Aprox line 89)
if (!$mail->send'email'" class="wiki wikinew text-danger tips array">$_REQUEST'email') {
$smarty->assign('msg', tra("The mail can't be sent. Contact the administrator"));
$smarty->display("error.tpl");
die;
}

This should replace the line feeds that the General Preference's setting should Have taken care of.