Advertisement:
Anonymous Login
11-24-2017 06:56 PM

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000875SMF 3.0 "Saguaro"public2008-02-10 13:50
Reportervbgamer45 
PrioritylowSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
Summary0000875: POP3 Interface for smtp_mail
DescriptionPOP3 Interface for smtp_mail
Just a reminder if you plan on adding an interface for this


Sources/Subs-Posts.php

The following code:

    // Try POP3 before SMTP?
    // !!! There's no interface for this yet.
    if ($modSettings['mail_type'] == 2 && $modSettings['smtp_username'] != '' && $modSettings['smtp_password'] != '')
    {
        $socket = fsockopen($modSettings['smtp_host'], 110, $errno, $errstr, 2);
        if (!$socket && (substr($modSettings['smtp_host'], 0, 5) == 'smtp.' || substr($modSettings['smtp_host'], 0, 11) == 'ssl://smtp.'))
            $socket = fsockopen(strtr($modSettings['smtp_host'], array('smtp.' => 'pop.')), 110, $errno, $errstr, 2);

        if ($socket)
        {
            fgets($socket, 256);
            fputs($socket, 'USER ' . $modSettings['smtp_username'] . "\r\n");
            fgets($socket, 256);
            fputs($socket, 'PASS ' . base64_decode($modSettings['smtp_password']) . "\r\n");
            fgets($socket, 256);
            fputs($socket, 'QUIT' . "\r\n");

            fclose($socket);
        }
    }
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes
MantisBT (Modified for SMF Intergration)[^] Copyright © 2000 - 2010 Mantis Group