• Resolved pictoru

    (@pictoru)


    Hello,

    Is there a way to customize the email template when sending the code for 2FA to email? I would like to add some logo and center the text.

    Thanks,

    Ciprian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kaspars

    (@kasparsd)

    Yes, there are the following filters available for this:

    • two_factor_token_email_message (ref)
    • two_factor_token_email_subject (ref)

    There are no configuration options in the admin to do this, though.

    Thread Starter pictoru

    (@pictoru)

    Well, this is nice. Thanks.

    I also added the filter wp_mail_content_type separately to send the email as HTML because in the below line (from Two Factor plugin) headers cannot be altered.

    return wp_mail( $user->user_email, $subject, $message );

    Is there something already set to allow me to send as HTML or my approach is OK?

    Thanks,

    Ciprian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Design email template’ is closed to new replies.