I use a standard authorization system in larawe. When sending a message to reset the password, the link has the form http: // localhost / password / reset / {token}
In the application files, I did not find a representation for this letter. How can I change the link to a normal address, not a localhost?
The URL is generated from your .env file. So look at the value for APP_URL in .env and change it to whatever you need.
Related
I am having issues on sending email via notification. I tried accessing the mailbox using the credentials I put in .env, the credential is good I am able to access the inbox but if I run the command sending email is failed.
on my .env
MAIL_DRIVER=smtp
MAIL_HOST=myhost
MAIL_PORT=465
MAIL_USERNAME=this#isworkingemail.com
MAIL_PASSWORD=pWdisWorking
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=this#isworkingemail.com
MAIL_FROM_NAME='AFTSCredit'
my function via
public function via($notifiable)
{
return [TwilioChannel::class,'database','mail'];
// return [TwilioChannel::class,'database'];
}
any idea? plase help thank you in advance!
Your error says Authentication error. This is nothing to do with Laravel/PHP mailer.
Try one of these below:
Clear cache
Check if you have modified config file. Make sure your .env variables are being pointed in your config file
Check if your server allows outbound emails
Check if you have right credentials such as host name, username, password
If you need extra authentication to allow using smtp services like google. You will need to activate to allow to use less secure app.
Finally, but not the least
If your mail server password contains a # then you should quote the environment string since everything after # will be taken as comment (starting in Laravel 5.8)
put the port and host as follows
MAIL_PORT = 587
MAIL_HOST= smtp.gmail.com
and also in your gmail . Disable two authentication and enabled unsecured apps
and then it would be okkay
At the moment I'm trying to implement the Laravel 5.7 email verification. I have got it so a mail driver will send an email out when registering a user. However, when I click on the email verify button, I get a 404 error.
The URL it sends me is this:
http://localhost/email/verify/16?expires=1543926629&signature=fa3a2a0d90c5752f99b24a7cf7c789edadba5aad2922fff907c289b3364ebceb
However, it is using the wrong URL as the local APP_URL in the regular .env is not localhost. Does anyone know how I can tell the email verification to use APP_URL instead of localhost? When I rename the URL to the correct URL, I can complete the email verification. Thanks.
Verify in your Http\Controllers\Auth\VerificationController.php if the protected attribute $redirectTo value exist in your routes\web.php or can be handled.
I recently hosted my website to the live server but i'm not sure how to change the credentials in my .env file for it to work on the live server.
you just need to create mail account on your server and go to mail setting of your server
you will found outgoing server url , username and password which you need to replace in .env file
In my config file when base_url = 'http://my-static-ip/my-installation-folder'
then forgot password link works fine.
But when change my basr_url to
base_url = '/my-installation-folder'
all applications work fine except forgot password link.
Email is going to the concerned user, but the reset password link does not contain the Server IP address.
This type of Error is coming.
The page you were on is trying to send you to an invalid URL (http:///cmts/auth/reset_password/VRxmW90fSEXTLmuX.9sA5.7291ca1368f3cca425).
If you do not want to visit that page, you can return to the previous page.
Need help pl.
I have made a copy of a website on my local machine so I can work on an offline version.
After logging in, I am redirected back to the login page. I know I have logged in as if I type in a wrong password I get "Invalid User Name or Password." message.
I have double checked the cookies path in the database, this is empty.
I have also tried adding a . in the config file but I'm not able to connect when I update the url to 127.0.0.1.
Is there anything I can check/try?
I am using mamp...
Many thanks.
Try changing address from http://localhost to something with more than one domain component. Sometimes there are issues with logging in using domain without single dot. http://magento.localhost may work in this case.