Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can insert the given code in line 148 of wp_mail_smtp.php as follows:

    // If we're sending via SMTP, set the host
    		if (get_option('mailer') == "smtp") {
    
    			// Set the SMTPSecure value, if set to none, leave this blank
    			$phpmailer->SMTPSecure = get_option('smtp_ssl') == 'none' ? '' : get_option('smtp_ssl');
    
    			// Set the other options
    			$phpmailer->Host = get_option('smtp_host');
    			$phpmailer->Port = get_option('smtp_port'); 
    			
    			// https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    			// https://php.net/manual/en/migration56.openssl.php
    			$phpmailer->SMTPOptions = array(
    				'ssl' => array(
    					'verify_peer' => false,
    					'verify_peer_name' => false,
    					'allow_self_signed' => true
    				)
    			);
    
    			// If we're using smtp auth, set the username & password
    			if (get_option('smtp_auth') == "true") {
    				$phpmailer->SMTPAuth = TRUE;
    				$phpmailer->Username = get_option('smtp_user');
    				$phpmailer->Password = get_option('smtp_pass');
    			}
    		} 
    

    Just replace $mail with $phpmailer. Worked for me.

    Thread Starter Reggie Niccolo Santos

    (@rnsantos007)

    Benoti from Stack Exchange helped me with the solution.

    The {$table_prefix}user_roles entry in the options table must begin with the actual table prefix.

    Your website was with a prefix of wp_ so the entry was called wp_user_roles. When modifying the table prefix you need to change it with the new one:

    dzup_wp_user_roles

    Hope it works !

    This is now resolved.

Viewing 2 replies - 1 through 2 (of 2 total)