Skip to content

user create Invalid address: wordpress@ #3378

@gbcxjoe

Description

@gbcxjoe

HI

Using:
WP-CLI version: 0.24.1
Ubuntu 14.04

when creating a new user with the following command, we get the error below.
/wp user create GBewuser joe@joe.com --send-email --role=administrator --allow-root

PHP Fatal error: Uncaught exception 'phpmailerException' with message 'Invalid address: wordpress@' in /home/scripttestdev/public_html/wp-includes/class-phpmailer.php:946
Stack trace:
#0 /home/scripttestdev/public_html/wp-includes/pluggable.php(352): PHPMailer->setFrom('wordpress@', 'WordPress', false)
#1 /home/scripttestdev/public_html/wp-includes/pluggable.php(1726): wp_mail('joe@applelinks....', '[dev scripttest...', 'New user regist...')
#2 phar:///wp/php/commands/user.php(898): wp_new_user_notification(2, NULL, 'both')
#3 phar:///wp/php/commands/user.php(362): User_Command::wp_new_user_notification(2, 'p(@ak@8vGZc1')
#4 [internal function]: User_Command->create(Array, Array)
#5 phar:///wp/php/WP_CLI/Dispatcher/CommandFactory.php(67): call_user_func(Array, Array, Array)
#6 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}(Array, Array)
#7 phar:///wp/php/WP_CLI/Dispatcher/Subcommand.php(372): call_user_func(Object(Closure), Array, Array)
#8 phar:///wp/php/WP_CLI/Runner.php(312): WP_CLI\Disp in /home/scripttestdev/public_html/wp-includes/class-phpmailer.php on line 946

Fatal error: Uncaught exception 'phpmailerException' with message 'Invalid address: wordpress@' in /home/scripttestdev/public_html/wp-includes/class-phpmailer.php:946
Stack trace:
#0 /home/scripttestdev/public_html/wp-includes/pluggable.php(352): PHPMailer->setFrom('wordpress@', 'WordPress', false)
#1 /home/scripttestdev/public_html/wp-includes/pluggable.php(1726): wp_mail('joe@app....', '[dev scripttest...', 'New user regist...')
#2 phar:///wp/php/commands/user.php(898): wp_new_user_notification(2, NULL, 'both')
#3 phar:///wp/php/commands/user.php(362): User_Command::wp_new_user_notification(2, 'p(@ak@8vGZc1')
#4 [internal function]: User_Command->create(Array, Array)
#5 phar:///wp/php/WP_CLI/Dispatcher/CommandFactory.php(67): call_user_func(Array, Array, Array)
#6 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}(Array, Array)
#7 phar:///wp/php/WP_CLI/Dispatcher/Subcommand.php(372): call_user_func(Object(Closure), Array, Array)
#8 phar:///wp/php/WP_CLI/Runner.php(312): WP_CLI\Disp in /home/scripttestdev/public_html/wp-includes/class-phpmailer.php on line 946

PHP Fatal error: Uncaught exception 'phpmailerException' with message 'Invalid address: wordpress@' in /home/scripttestdev/public_html/wp-includes/class-phpmailer.php:946

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions