ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on February 28, 2016, 02:51:42 pm

Title: The most funny
Post by: emanuele on February 28, 2016, 02:51:42 pm
Code: [Select]
http://www.elkarte.net/community/index.php?scheduled=mailq;ts=1453904261
/.../sources/subs/Mail.subs.php
Line: 1068
That's all there is to it.
No actual errors, just the file and the line (Elk 1.0.6), it's an $db->insert, but I have no clues as to what the problem could be, most likely the error reporting is shut down on this path, we'd have to turn it on.
Title: Re: The most funny
Post by: Antechinus on February 28, 2016, 03:02:04 pm
Awesome.
Title: Re: The most funny
Post by: Floyyd on May 29, 2016, 07:34:22 am
Hello!

I have also a problem with the E-Mails.
Elkarte 1.0.7 is on my server, runs very good but there was no E-Mails sended to members where registered or i send Mails manually.

In the ErrorLog there was logged:

http://www.******************/index.php?scheduled=mailq;ts=1464516163
Filter hinzufügen: Nur Fehler von dieser Datei zeigen Datei: /home/styri0000/www/home/h123/sources/subs/Mail.subs.php
Zeile: 1068


I have edit the mail.sub.php from https://github.com/*** (https://github.com/emanuele45/Dialogo/commit/a949e6b5980fd4db7f70a3182cd9969b430b3620) - below the current code

// Line breaks need to be \r\n only in windows or for SMTP.
$line_break = !empty($context['server']['is_windows']) || !$use_sendmail ? "\r\n" : "\n";

foreach ($emails as $key => $email)
{
// Use the right mail resource
if ($use_sendmail)
{
$email['subject'] = strtr($email['subject'], array("\r" => '', "\n" => ''));
$email['body_fail'] = $email['body'];

if (!empty($modSettings['mail_strip_carriage']))
{
$email['body'] = strtr($email['body'], array("\r" => ''));
$email['headers'] = strtr($email['headers'], array("\r" => ''));
}

$need_break = substr($email['headers'], -1) === "\n" || substr($email['headers'], -1) === "\r" ? false : true;

// Create our unique reply to email header if this message needs one
$unq_id = '';

Anyone who can help me? Sorry for my bad english.