View Issue Details

IDProjectCategoryView StatusLast Update
0024668mantisbtemailpublic2018-08-16 03:46
Reportershyangs Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0024668: if-else branch:set 'smtp_connection_mode' empty string
Description

I set $g_smtp_connection_mode = ''; and test mail.

SMTP Error: Could not authenticate. occur.

I edit mantisbt\core\email_api.php

            // if( is_blank( config_get( 'smtp_connection_mode' ) ) ) {
            //  $t_mail->SMTPAutoTLS = false;
            // }
            // else {
            //  $t_mail->SMTPSecure = config_get( 'smtp_connection_mode' );
            // }
            $t_mail->SMTPSecure = config_get( 'smtp_connection_mode' );

Then I test mail. mail() send successful.

TagsNo tags attached.
Attached Files
mbt000.PNG (32,005 bytes)   
mbt000.PNG (32,005 bytes)   
mbt001.PNG (27,953 bytes)   
mbt001.PNG (27,953 bytes)   
mbt002.PNG (16,989 bytes)   
mbt002.PNG (16,989 bytes)   
mbt003.PNG (27,449 bytes)   
mbt003.PNG (27,449 bytes)   

Relationships

related to 0021293 closedatrol Send notifications by smtp does not work correctly, and the analysis of why it happend. 

Activities