我出现和他一模一样的问题,搞了一天也不知哪错了,自己写的能发出去,用yii2-user注册就是Expected response code 250 but got code "501", with message "501 mail from address must be same as authorization user。我看文档注册的url是/user/registration/register,用/user/register显示的是404。还有邮件没发出去但是注册的账号已经写进user表了。