Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter nilssonline

    (@nilssonline)

    Hello Javier,
    In the settings for the plugin import and export users and customers I go to the mail options tab.
    I can edit the text in the textarea and click on the button Save email template and options. But when the button is clicked and the page updates the changes are erased.

    So I can’t alter the original message because the changes can’t be saved.

    Thread Starter nilssonline

    (@nilssonline)

    I’ve had SMTP installed the entire time. Is there some specific integration between them that has to be made? As the rest of the emails from the site can be sent out.

    Thread Starter nilssonline

    (@nilssonline)

    Yeah, it’s only the contact 7 form that’s the problem. Everything else works great!

    Thread Starter nilssonline

    (@nilssonline)

    Hello,
    No that’s just it, It’s weird cause I can send emails from the website. All email notifications work both from WP and LD notifications. I’m using SMTP plugin to send emails, If that changes anything?

    Thread Starter nilssonline

    (@nilssonline)

    Hey @codekraft, Yes of course. I will delete the link once you’ve confirmed getting to the site
    Website link

    • This reply was modified 3 years, 6 months ago by nilssonline.
    Thread Starter nilssonline

    (@nilssonline)

    Hello @bcworkz , thank’s for the help!
    I still have the code in the functions.php and The code below works and sends the message to the user. But I’m not sure how to add the wp_mail_content_type’ filter so I can add an image to the email as well, any tips?

    add_filter( 'wp_new_user_notification_email', 'edit_user_notification_email', 10, 3 );
    function edit_user_notification_email( $wp_new_user_notification_email, $user, $blogname ){
    	
    
    	$new_subject_txt = __( 'Information about username and password');
    	$new_msg_txt = __( 'Hello and welcome to Our website!'). "\r\n";
    	$new_msg_txt .=__( 'You have been assigned an education on our e-learning platform.'). "\r\n\r\n";
    	$new_msg_txt .= sprintf(__('Your username is: %s'),  $user->user_email ) . "\r\n";
    	$key = get_password_reset_key( $user );
    		if ( is_wp_error( $key ) ) {
    			return;
    		}
     	$new_msg_txt .= __( 'To set your password, visit the following address:' ) . "\r\n";
        $new_msg_txt .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n";
    	$new_msg_txt .= __( 'For questions or problems with entering a password, contact our support.');
    	$wp_new_user_notification_email['subject'] = $new_subject_txt;
    	$wp_new_user_notification_email['message'] = $new_msg_txt;
    	return $wp_new_user_notification_email;
    }

    I also want to add this function to the fuctions.php file but for some reason it doesn’t work. What am I missing?

    add_filter( 'password_change_email', 'rt_change_password_mail_message', 10, 3 );
    function rt_change_password_mail_message( $pass_change_email, $user, $userdata ) {
    		$new_password_subject_txt = __( 'Reset password on our website');
    		$new_password_msg_txt = __('Someone has requested a password reset for the following account on %s:') . "\r\n";
    		$new_msg_txt .= sprintf(__( 'Username: %s' ), $user->user_login ) . "\r\n";
    		$new_msg_txt .= _('If this was a mistake, just ignore this email and nothing will happen.'). "\r\n";
    		$new_msg_txt .= __( 'To reset your password, visit the following address:' ) . "\r\n\r\n";
    		$new_msg_txt .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n";*/
    
    	$pass_change_email['subject'] = $new_password_subject_txt;
    	$pass_change_email['message'] = $new_password_msg_txt;
    	return $pass_change_email; 
    }
    Thread Starter nilssonline

    (@nilssonline)

    Hello @corrinarusso
    I’m using a plugin that does this. It’s called “Better Notifications for WP (bnfw)”.
    But you see I have a website in two languages (I’m using the Polylang plugin). The bnfw plugin works, but only for one language.

    So I want the same email in swedish and english, depending on the language set for the user. I haven’t found an email plugin where you can translate the messages or have different versions(?).

    Do you know if there’s a plugin out there that you can do this?

    Thread Starter nilssonline

    (@nilssonline)

    @carlek I needed to use the “Language set from content” under the Polylang URL modifications settings to make it work for me. Don’t know if that solves your problem though?

    Thread Starter nilssonline

    (@nilssonline)

    Hello @voltronik
    I just wanted to check in if this was anything your planning on developing in the near future?

    Thread Starter nilssonline

    (@nilssonline)

    Hello,
    I’m using Polylang on the rest of the site right now.

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