Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor inthylight

    (@inthylight)

    @westcoastradio

    Thanks for the question. The Clef 2FA plugin uses the wp_mail() function to send the invitation emails (see this method, which calls wp_mail() here).

    Troubleshooting-wise, this means that, if you’re experiencing issues with Clef invitation emails being sent out, it is a good idea to do one of the following:

    • switch to SMTP for sending WordPress emails (e.g., use a plugin such as Postman SMTP or Easy WP SMTP) — ordinarily, SMTP is considered to be a more stable/consistent method for sending emails than the wp_mail()/PHP script method. The Postman plugin includes a log, which is helpful for toubleshooting.
    • troubleshoot wp_mail(); for starters Chad Butler has (dated but still useful) troubleshooting guides here and here. Some hosts limit PHP’s ability to send emails in order to try to reduce spam, so be sure to look at your host’s documentation on sending emails from scripts.

    Note that the Clef 2FA plugin will return an error message if its invitation emails fail to send (see here); if you are running a security plugin that suppresses error messages, you likely need to disable that feature in order to see the errors.

    Thread Starter westcoastradio

    (@westcoastradio)

    Hi Laurence

    Thanks for the info, but it’s strange that the wp_mail() function seems to work fine with all of my other plugins…

    I uninstalled Clef and reinstalled, and now it’s not sending any emails at all (it worked sporadically before).

    Plugin Contributor inthylight

    (@inthylight)

    @westcoastradio good morning,

    Wp_mail()-based email failure is a fairly common issue WordPress-wide, and several web hosts suggests switching to SMTP for a resolution. For example, see WP Engine’s help doc on wp_mail and SMTP.

    Can you try switching to SMTP, and then test whether the invite emails are being sent successfully (e.g., if you have a Gmail account, create a new user WP with an email that is an alias of your Gmail address like this UserXYZ+alias@gmail…). Also, if you use Postman SMTP, turn on the log, and make sure your server is not returning any errors on send.

    Hi, I am already using Postman SMTP and the Sendgrid API and the testmail arrives at my email address. But I have now sent the Clef invitation 5 times to myself and no invitation is being sent, this is confirmed by the SendGrid stats, not a single email from the website to my email address.

    How can we debug the Clef invitation email?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No invite email?’ is closed to new replies.