Uutiset:

Join the Facebook Fan Page.

Main Menu
Advertisement:

1.1.13-pm/email error log

Aloittaja DarkAngel612, kesäkuu 09, 2011, 06:22:33 IP

« edellinen - seuraava »

DarkAngel612

I used the admin/news and newsletter/newsletters to send out a mass notice for one of our contests and in the error log I got this error message:

2: mail() [<a href='function.mail'>function.mail</a>]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i'
File: /home/xxxxx/public_html/xxxxx/Sources/Subs-Post.php
Line: 661



this is the area and actual like is in red


// SMTP or sendmail?
    if ($use_sendmail)
    {
        $subject = strtr($subject, array("\r" => '', "\n" => ''));
        if (!empty($modSettings['mail_strip_carriage']))
        {
            $message = strtr($message, array("\r" => ''));
            $headers = strtr($headers, array("\r" => ''));
        }

        foreach ($to_array as $to)
        {
            if (!mail(strtr($to, array("\r" => '', "\n" => '')), $subject, $message, $headers))
            {
                log_error(sprintf($txt['mail_send_unable'], $to));
                $mail_result = false;
            }

            // Wait, wait, I'm still sending here!
            @set_time_limit(300);
            if (function_exists('apache_reset_timeout'))
                apache_reset_timeout();
        }
    }


could someone please tell me what to do. Host is hostgator and although it might be I need to use smtp and not sendmail--I handle others on this host with no problems using sendmail whether they be shared/vps or dedicated servers

when i sent out the mass pm I had all members checked and only used "Send this to these groups using personal messages"

now I did have trouble sending out when I only chose Next and it opened up the page to send via email and was given instructions shown in copy of other post here---maybe related?

--------previous post------------

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
File: /home/xxx/public_html/forum/Sources/PersonalMessage.php
Line: 1568



answer given was:

I'm surprised that it's not giving you the full failing SQL query, but I'll guess that the  $recipients['to'] array is empty. thus you get
Code: [Select]WHERE mem.ID_MEMBER IN ()in the query. Off hand, I don't know what causes it, but I seem to recall seeing reports of similar problems (with personal messages) over the years. You might do some more searching for similar keywords that you used in your post.

At the least, you might be able to confirm this by temporarily changing
Code: [Select]            // Let's get the names of those they sent the message to, shall we?
            $request = db_query("
to
Code: [Select]            // Let's get the names of those they sent the message to, shall we?
if (count($recipients['to']) == 0) {
echo "ERROR: no recipients[to] list\n";
}
            $request = db_query("
If that confirms my guess, you'll have to hunt down why that array is empty.

which I did and now I am having trouble again. I have template evaluation turned off so the error messages I get are as shown
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

impreza

Do you have installed some fashion before it stopped working?
Portal ToTemat.pl - Filmy i Artykuły

DarkAngel612

i have a mod to alert the member that who and that the pm was successfully sent. Prior to the host move everything was working beautifully.

This started after the move to the new host. I have run repair_settings. I even went so far as to uninstall all mods and reupload fresh smg files running the update.php also. Then reinstalled all the mods by removing them totally from the server folder and re adding them in package manager.

Problem still is there.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

Advertisement: