summaryrefslogtreecommitdiffstats
path: root/wp-mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-mail.php')
-rw-r--r--wp-mail.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/wp-mail.php b/wp-mail.php
index 7ab76f8..920beff 100644
--- a/wp-mail.php
+++ b/wp-mail.php
@@ -11,10 +11,8 @@ $phone_delim = '::';
$pop3 = new POP3();
-if (!$pop3->connect(get_settings('mailserver_url'), get_settings('mailserver_port'))) :
- echo "Ooops $pop3->ERROR <br />\n";
- exit;
-endif;
+if (!$pop3->connect(get_settings('mailserver_url'), get_settings('mailserver_port')))
+ wp_die($pop3->ERROR);
$count = $pop3->login(get_settings('mailserver_login'), get_settings('mailserver_pass'));
if (0 == $count) wp_die(__('There doesn&#8217;t seem to be any new mail.'));