php - Laravel error send email: 550 5.7.1 Sender unknown -
i have laravel application (5.3.31) needs send emails users.
the from address used in config/mail.php no-reply@company.domain:
'from' => [ 'address' => 'no-reply@company.domain', 'name' => 'my app', ], if try send email hyphen getting following error:
mail::to($email)->send(new myappmail($data)); swift_transportexception in abstractsmtptransport.php line 383: expected response code 250 got code "550", message "550 5.7.1 sender unknown but if remove hyphen noreply@company.domain works.
the mail server settings in .env file rights ones:
mail_driver=smtp mail_host=myhost mail_port=25 mail_username=myusername mail_password=mypassword mail_encryption=tls does know why happening?
Comments
Post a Comment