2Moons icon indicating copy to clipboard operation
2Moons copied to clipboard

Admin Global message, mode Mail doesn't work

Open sunchaser68 opened this issue 7 years ago • 4 comments

While sending a global message from Admin Panel, if I select mode Mail or Mail and Game I have a console error:

Failed to load resource: the server responded with a status of 503 (Service Unavailable)
[...] 2Moons/admin.php?page=globalmessage&action=send&ajax=1

Response;

<body id="overview" class="full">
<table width="960">
    <tr>
        <th>USER ERROR</th>
    </tr>
    <tr>
        <td class="left">
            <b>Message: </b>Invalid address: <br>
            <b>File: </b>/includes/libs/phpmailer/class.phpmailer.php<br>
            <b>Line: </b>1002<br>
            <b>URL: </b>http://www.spacewarlordsgame.com/admin.php?page=globalmessage&action=send&ajax=1<br>
            <b>PHP-Version: </b>5.4.45<br>
            <b>PHP-API: </b>cgi-fcgi<br>
            <b>MySQL-Client-Version: </b>5.5.50<br>
            <b>2Moons Version: </b>1.8.git<br>
            <b>Debug Backtrace:</b><br>#0 /includes/classes/Mail.class.php(79): PHPMailer-&gt;setFrom('', 'Space Warlords')<br>
#1 /includes/classes/Mail.class.php(33): Mail::getMailObject()<br>
#2 /includes/pages/adm/ShowSendMessagesPage.php(76): Mail::multiSend(Array, 'Test Global Mes...')<br>
#3 /admin.php(115): ShowSendMessagesPage()<br>
#4 {main}
        </td>
    </tr>
</table>
</body>
</html>

sunchaser68 avatar Sep 08 '16 15:09 sunchaser68

It says invalid address... Set a valid one.

OzanKurt avatar Sep 08 '16 15:09 OzanKurt

Whan configured the SMTP address the function works. It doesn't send mails though, but this can depend on my server, i am checking this one.

However, i think if the admin selects SMTP as mail mode, the system should output an error instead of crashing.

Maybe this problem should not be high priority as it pertain to the Admin console.

sunchaser68 avatar Sep 09 '16 13:09 sunchaser68

@sunchaser68 Currently, the functions depends on the SMTP Sender Address. Maybe I have to rename it.

jkroepke avatar Feb 01 '17 22:02 jkroepke

I have no problems if properly configured

Jbaukens avatar Jun 16 '17 11:06 Jbaukens