Support » Plugin: Swift SMTP (formerly Welcome Email Editor) » Dont work for "Forgot password"

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey,
    thanks for your work!
    But Unfortunately i got the same issue as dimitrow.

    WP: 3.5.1 & Version 3.9 of your plugin.

    Any ideas?

    Thread Starter dimitrow

    (@dimitrow)

    I test everything and have no result. Please support team to help us !

    Hey dimitrow.

    I just found a quick workaround for this Problem.
    It doesn’t solve the problem from the plugin at all. And it’s ONLY for the “Forgot Password Mail” and not multilinguale or anything fancy. 😉

    Put this code in your functions.php

    add_filter ("retrieve_password_message", "own_retrieve_password_message", 10, 2);
    function own_retrieve_password_message($message, $key) {
    	global $wpdb;
    	$user_login = $wpdb->get_var("SELECT <code>user_login</code> FROM <code>&quot;.$wpdb->users.&quot;</code> WHERE <code>user_activation_key</code>= '".$key."'");
    
    	ob_start();
    
    	include("email_header.php");
    
    	echo '<p>Text here</p>';
    
    	echo '<p>Maybe more Text</p>';
    
    	echo '<p>
    		Here comes the link:
    		<br>'.wp_login_url("url").'?action=rp&key='.$key.'&login='.$user_login.'
    	<p>';
    
    	include("email_footer.php");
    
    	$message = ob_get_contents();
    
    	ob_end_clean();
    
    	return $message;
    }
    Thread Starter dimitrow

    (@dimitrow)

    funcyion.php of WordPress core or funcyion.php of current theme?

    function.php of current theme.

    Thanks guys. I will sort this out for the next version.

    thanks
    Sean

    Hello there.
    Same issue, zitrusman’s solution isn’t working.
    The default forgot password mail is sent instead of the custom one.
    Please consider this bug as a major ont to fix in the next ver.
    Thanks for your work.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Dont work for "Forgot password"’ is closed to new replies.