Title: 2FA Email &#8211; 2FA Code doesn&#8217;t send
Last modified: July 22, 2017

---

# 2FA Email – 2FA Code doesn’t send

 *  Resolved [archampion](https://wordpress.org/support/users/archampion/)
 * (@archampion)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/)
 * Hi,
 * Recently the 2FA email code doesn’t work anymore.
    Even though I still can received
   the “just logged in” email. I’m not sure why though. I’m not sure is it my wordpress
   problem, the plugin problem or my hosting server problem.
 * Any idea?
 * Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [archampion](https://wordpress.org/support/users/archampion/)
 * (@archampion)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9342611)
 * Just an update.
 * I got an email log indicated that the email is sent but I didn’t receive in my
   inbox. Only received the logged in email.
    -  This reply was modified 8 years, 10 months ago by [archampion](https://wordpress.org/support/users/archampion/).
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9342706)
 * My guess is then you have something filtering emails. You just need to find out
   where:
    - at your web server
    - your email smtp server
    - your receive inbox – spam filtering, or moving to an unknown folder
 * Maybe do this and it’ll eliminate the first 2 for good.
    [https://www.icontrolwp.com/blog/trouble-free-email-solution-wordpress-mandrillapp/](https://www.icontrolwp.com/blog/trouble-free-email-solution-wordpress-mandrillapp/)
 *  Thread Starter [archampion](https://wordpress.org/support/users/archampion/)
 * (@archampion)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9344153)
 * Hi,
 * I tried using mailgun and now it works.
 * But there is a weird issue with the mailgun plugin.
    There is an option where
   you can select whether to use HTTP connection or just SMTP. Option Yes for HTTP
   connection. Option No for SMTP.
 * If I select No, somehow when I test send email, it couldn’t get the SMTP connected.
   Not sure why.
 * If I select Yes, now it works. It was not working at first. I guessing probably
   due to the domain verification and DNS settings which could take some hours for
   hosting server to properly fully connected with mailgun.
 * So I wondering if you have any idea why using SMTP option for mailgun doesn’t
   work.
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9344430)
 * HTTP is what you want. That is the win from using Mailgun – you use the API over
   HTTP and not SMTP because outgoing SMTP from many web hosting accounts is easily
   blocked.
 * Stick to HTTP by default and you’ll be more than absolutely fine.
 *  Thread Starter [archampion](https://wordpress.org/support/users/archampion/)
 * (@archampion)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9349738)
 * Hi,
 * Earlier when I tried to login with 2FA email, somehow I didn’t receive any email
   code. No email is sent.
 * So I did a forceoff and disabled the 2FA email and logged in with only the normal
   2FA, then I received all the emails.
 * Not sure why but it seems the emails got delayed or not triggered somehow.
 * Any idea?
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9349922)
 * This is down to Mailgun or whichever service you use. The emails are sent through
   Shield immediately. No delay on the part of the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘2FA Email – 2FA Code doesn’t send’ is closed to new replies.

 * ![](https://ps.w.org/wp-simple-firewall/assets/icon-256x256.png?rev=3054572)
 * [Shield Security – Smart Bot Blocking, Brute-Force Login Protection & File Scanning](https://wordpress.org/plugins/wp-simple-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-firewall/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/2fa-email-2fa-code-doesnt-send/#post-9349922)
 * Status: resolved