cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to receive the password reset link via mail from Magento

Unable to receive the password reset link via mail from Magento

Hi,

 

We are using the Magento 2.3 and unable to receive the password reset link via mail from Magento for Magento Main website. We had checked all the mail folders and confirmed that we didn't receive any mails.

 

So anyone please help me to how to solve this issue.

 

Thanks.

16 REPLIES 16

Re: Unable to receive the password reset link via mail from Magento

Hi @Pranera 

 

I would like to suggest you to use this extension email. This is a free extension.

 

https://github.com/mageplaza/module-core
https://github.com/mageplaza/magento-2-smtp

 

Steps to install and configuration:

 

1) Download and install both the extension.

2) Run upgrade and compile command, clear cache

3) Setting for SMTP under Store Configuration

 

Hope, It will work for you.

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Unable to receive the password reset link via mail from Magento

Hello @Pranera ,

 

Please check mail configure on server or not. Please create one file on magento root directory and add below code in it and execute it. If you don't get any email then you have to configure on server. Don't forget to change email in below code

<?php
// the message
$msg = "First line of text\nSecond line of text";

// use wordwrap() if lines are longer than 70 characters
$msg = wordwrap($msg,70);

// send email
mail("someone@example.com","My subject",$msg);
?>

 

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Unable to receive the password reset link via mail from Magento

hi @PankajS_Magento 

 

When I try to run the command "composer require mageplaza/module-core" in the magento root path folder, getting a error like below.

image (23).png

Please help me to solve this issue.

 

 

 

Re: Unable to receive the password reset link via mail from Magento

Hi @Pranera 

 

The image you shared is not visible to me.

I suggest you to download a ZIP file and install it manually. It will be easy for you.

 

Thanks

 

 

Re: Unable to receive the password reset link via mail from Magento

hi @PankajS_Magento ,

 

Getting a error like "bash: composer: command not found". Please tell me how to solve this.

 

Thanks.

Re: Unable to receive the password reset link via mail from Magento

Hi @Pranera 

 

It means you don't have composer installed on the server. You can try by download it directly from GIT and paste into app/code directory.

 

Here are steps to download and configure:

 

1) Click on the GIT links shared above.

2) From right corner "clone or download" you can select ZIP downlaod

3) Add/Extract first link downloaded directory into "app\code\Mageplaza\Core"

4) Add/Extract second link downloaded directory into "app\code\Mageplaza\Smtp"

5) Run the following command into Magento root directory. 

 

sudo php bin/magento module:enable Mageplaza_Core -c
sudo php bin/magento module:enable Mageplaza_Smtp -c
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

Now your both module are available to work:

 

1) Register on mageplaza website for enable extension click here

2) Go to admin panel Store -> SMTP -> Configuration

3) Configure your SMTP extension, add same email Id that used for register on Mageplaza.

4) Save the configuration and it will work for you.

 

Let me know if you have any questions.

 

Thanks

 

 

Re: Unable to receive the password reset link via mail from Magento

hi @PankajS_Magento 

 

After following the first 4 steps, i try to run the command "sudo php bin/magento-cli module:enable Mageplaza_Core -c"

 

and getting a error like below,

 

# Check the user before running the command
if [ `id | sed -e s/uid=//g -e s/\(.*//g` -ne 0 ]; then
echo "Please run this script using admin privileges (as root user or using sudo). This way, it will use the pro
per user to run the Magento's command" >> /dev/stderr
exit 1
fi
# Run the Magento's commands using the web servers' user and group
su daemon -s /bin/bash -c "/opt/bitnami/php/bin/php /opt/bitnami/apps/magento/htdocs/bin/magento $*"

 

please help me to solve this.

Re: Unable to receive the password reset link via mail from Magento

@Pranera 

 

Run all commands without sudo like:

 

php bin/magento module:enable Mageplaza_Core -c

Make sure you have permission to RUN commands.

 

Thanks

 

 

Re: Unable to receive the password reset link via mail from Magento

@PankajS_Magento 

 

I ran the command without sudo only. No, I don't have permission to run the commands. That's why I am asking the help to solve this issue.

 

ba@magento-laya-vm:~/apps/magento/htdocs$ php bin/magento-cli module:enable Mageplaza_Core -c
# Check the user before running the command
if [ `id | sed -e s/uid=//g -e s/\(.*//g` -ne 0 ]; then
echo "Please run this script using admin privileges (as root user or using sudo). This way, it will use the pro
per user to run the Magento's command" >> /dev/stderr
exit 1
fi
# Run the Magento's commands using the web servers' user and group
su daemon -s /bin/bash -c "/opt/bitnami/php/bin/php /opt/bitnami/apps/magento/htdocs/bin/magento $*"

 

 

Thanks.