PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User Registration email notification in html format

  1. Hi,
    I know this kind of question has been asked before:



    http://www.gravityhelp.com/forums/search.php?search=gform_notification_format&advanced=1&exact=1&posts=1&highlight=1&users=0&located=0&forums%5B%5D=0&maxcount=9999999&age=999999&direction=0&sort=date&order=0


    My question is that does gform_notification_format have any affect on sign up user notification emails with the user registration add on?

    I have the following code in my functions.php:

    add_action("gform_notification_format", "gsale_set_notification_format", 10, 4);
    
    function gsale_set_notification_format($format, $notification_type, $form, $lead){
             return "html"; // for testing - all emails as html
    }
    
    add_filter( 'wpmu_signup_user_notification_email', 'gsale_modify_signup_user_notification_message', 10, 4 );
    
    function gsale_modify_signup_user_notification_message( $message, $user, $user_email, $key ) {
    
    	$activation_link = trailingslashit( get_permalink( USER_ACTIVATION_PAGE ) ) .  "?page=gf_activation&key=$key";
    	$path = STYLESHEET_URI;
    	$message = file_get_contents( "{$path}template-user-registration-notification-email.html" );
    	$message = str_replace( '{activation_link}', $activation_link, $message );
    	return $message; // this is an html included file
    }

    Unfortunately it always appears as plain text in the email client. Suggestions or is this not implemented?

    Posted 7 years ago on Tuesday January 29, 2013 | Permalink
  2. It has no effect on the signup notification email. As far as I know, the user registration notification email from WordPress is always plain text.

    Posted 7 years ago on Tuesday January 29, 2013 | Permalink
  3. Ok good to know, thanks. It's no biggie!

    Posted 7 years ago on Tuesday January 29, 2013 | Permalink
  4. Thank you.

    Posted 7 years ago on Wednesday January 30, 2013 | Permalink

This topic has been resolved and has been closed to new replies.