Hello,

mysite.com/user

Click request new password

Entered user name.

It says "further instruction was sent to email".

Logged into the admin email. I waited about 30 minutes. I did not see any email in inbox or junk folder. Checked with hosting provider and they told me everything is good on their end. 

 Please advise. I am just stuck. 

Thanks.

Comments

Michael-IDA’s picture

Just checking...

1) > Entered user name.

2) > Logged into the admin email

Was it the admin user name you entered in step 1)? 

First you need to know if you're getting mail off the box, so try entering the email address itself.   (You can also try using a contact form for the same purpose.)

Once you know mail is being sent/received correctly, you can track down why one user account's mail isn't working...

Best,
Michael

Drupal Hosting

NIH Cancer Study: Supplemention with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.

drupol’s picture

I have two user names; admin and authenticated users. I tried both user names. I got no email. I got message saying email is sent out but no email for both of them. 

I  also entered user's email address to reset. I got message saying email was sent out but I got no email. 

vm’s picture

did you check your spam folder?

I assume junk folder is spam folder. Drupal hands the email off to php sendmail(). The only thing I can think to do is perform back trace. Hosting provider saying "every thing is fine on their end" doesn't mean it is. Especially on shared server.

That said, there is a significant amount of already existing discussion surrounding this type of issue that can be found with google. My quick search indicates the following to be of some benefit https://www.webomelette.com/drupal-modules-debug-emails There are others that should be looked into if the above is of no help.

drupol’s picture

Installed the https://www.drupal.org/project/mail_logger  module. 
https://www.drupal.org/project/reroute_email

I requested for new password. Recent log and outgoing mail log both shows it.
Got no email. Not in spam too.

Submited a webform. Recent log does not show it. Outgoing mail log shows it. 
Got no email. Not in spam too.

Does not send email using reroute module. 

I used back up and migrate module to migrate from source to target. Email works fine in source. Does not work in target. 

vm’s picture

check the servers IP against blacklisted servers to determine if the host was blacklisted.

Are there any firewalls in place on the host that the mail may not be making it through?

I'd consider using the SMTP module and trying to send email through SMTP rather than PHP , if nothing else as a test.

drupol’s picture

As I mentioned, this problem happened after migration. Source has no problem. Source and target sites are both hosted under same account in hosting server.  If the host was blacklisted, do you not think it should have same problem in source site as well?

As for the firewalls, I will call hosting provider. Again, firewall causing it, do you not think it should have same problem in source site as well?

I just enabled SMTP. It is asking to config. Will I get that server details from hosting provider?

mmjvb’s picture

When email is logged it doesn't mean that it is correct. You might compare both source and target mail. Without obvious clues you may ask your provider why and if the mail is rejected. 

The information about the SMTP should be available via Google. 

vm’s picture

When debugging an issue assumptions aren't confirmations. Thus what I think isn't important, what I can confirm is.

Michael-IDA’s picture

> As I mentioned, this problem happened after migration. Source has no problem. Source and target sites are both hosted under same account in hosting server.

Doubtful it's an actual host issue, but most likely it is the host blocking the target site because the target site is claiming to be the source site in a From: or an X-header.  If you had WHM access, 2 minutes in the Mail Delivery Reports would find the problem...

Check these:

- $base_url in settings.php

- drush status , verify both sites are using the same PHP configuration

- verify you're not using the same Site, or other, e-mail addresses
Home » Administration » Configuration » System » Site information
/admin/config/system/site-information

Edit:  Also check the DNS spf record for -all , see https://en.wikipedia.org/wiki/Sender_Policy_Framework for details.
 

Best,
Michael

Drupal Hosting

NIH Cancer Study: Supplemention with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.

drupol’s picture

I copied the settings.php content from source to target. Then changed only the following:

$databases and $base_url.

For base url,  Target site shows target url. Source site shows source url.

I have not used drush. I manually checked both settings.php. All same excep about two variables. 

Config > site infomation: Email field has same email for both. 

Did not solve the problem.

Michael-IDA’s picture

> Email field has same email for both.

You don't want that. SPF can, depending on how it's configured, 'fail' sending/receiving mail if the from email address doesn't match the sending domain.

Drupal Hosting

NIH Cancer Study: Supplemention with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.

drupol’s picture

Site information: Source and target email fields are different now. It did not make any difference.

drupol’s picture

I did clean drupal 7.56 install in shared hosting server by clicking install. It still does not send any mails. 

https://drive.google.com/open?id=1cR4dDYcHO9oKWB3eoVhnN_w6Z0tmc4zQQSl71S...

Michael-IDA’s picture

If you've done a clean install and you aren't getting emails, then it's a host issue. Nothing we here can do to help you with that...

Drupal Hosting

NIH Cancer Study: Supplemention with both vitamins and fenbendazole exhibited significant (P = 0.009) inhibition of tumor growth.

drupol’s picture

I talked to hosting provider few times yesterday. I have explained to them that "I just installed drupal. At this point, I have not done anything on my end. I installed drupal and next thing I did immediately was to try to reset the password for admin.  I get no email. I have done the exact same steps for other sites. I got email no problem. For some reason, email does not work in that particular folder where the site is pointing to. I deleted files and deleted database. All clean. Reinstalled drupal in the same folder. No email." They are saying they tested their server which sends email. They asked me to try with different php version. If that does not work, there is nothing they can do. Its all on my end(i think referring to cpanel dashboard). I had php native 5.4 before. Then I changed to php 7.1. I wiped everything off from the directory and deleted database. Reinstalled drupal and still same issue. I installed smtp module. It sends out the test email but does not send password reset email. This is a live site. I am in serious trouble. Spent about 4 days and no luck. 

andylarks’s picture

Hi @drupol

I have exactly the same problem - SMTP module sends test email fine, but the account creation and password reset emails are not sending. 

vijaythummar’s picture

Hi andylarks,

Was your problem solved? is there any way? I am facing exact same issue. SMTP test emails are working but none of drupal emails are working.

Thanks,

Vijay

Thanks,
Vijay Thummar

ericrross’s picture

Mail Logger shows that an email was sent but there isn’t an email going to the mail server. Any ideas?

Drupal 7.59

Commerce Kickstart 7.x-2.54

PHP 7.1.18

tory-w’s picture

Hello All,

Try using the Mailcontrol Module. It worked for me by adding "Notify new user when account created by admin" fields to all of the User settings e-mails, including "Welcome (no approval required" with e-mail verification set. It restores the registration email functionality. Simply install it and go to the "Account Settings" page and check the "Notify new user......" field on the email template you are trying to use.

I found this module by accident because I was going to override the default new registration emails and trigger an email with Rules. No matter what I tried with the SMTP Module settings or the system e-mail, it didn't work. This worked. It seems like a lot of people have had this issue. If you try it, let us know if it works for you.

Naturalist’s picture

I checked contact form same result. After a long session of sleuthing I discovered the problem. You must have your domain name now in the configuration/basic site settings/sitename. It must be exact domain. IntendedExample.com. It must match domain the mail came from. For 8 years I never had to do this. Now it must be done in order to work.