SyBox
Run
Save
first_name, $welcome_email ); $welcome_email = str_replace( 'SITE_NAME', $site_name, $welcome_email ); $welcome_email = str_replace( 'USERNAME', $user->user_login, $welcome_email ); $welcome_email = str_replace( 'LOGINLINK', wp_login_url(), $welcome_email ); //from email $admin_email = get_site_option( 'contact@mysocialart.com' ); if ( empty( $admin_email ) ) { $admin_email = 'contact@mysocialart.com' . $_SERVER['SERVER_NAME']; } $from_name = $site_name . "<$contact@mysocialart.com>" ;//from $message_headers = array( 'from' => $from_name, 'content-type' => 'text/plain; charset='. get_option('blog_charset') ); //EMAIL SUBJECT $subject = sprintf( __( '[MySocialArt] IMPORTANT: MODE EMPLOI A LIRE %1$s ' ), $site_name ) ; //SEND THE EMAIL wp_mail( $user->user_email, $subject, $welcome_email, $message_headers ); return true; }
Code
Result
{TITLE}
{MESSAGE}
{MESSAGE}