Home Forums Support New User Invitations Not Sending

This topic contains 14 replies, has 2 voices, and was last updated by  fweb_matt 1 month, 1 week ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #24402

    fweb_matt
    Participant

    Please assist.

    None of the new user invitations I am trying to send appear to even be leaving the Invoice Ninja platform.
    I have updated to version 4.5.18 in the hopes that this would resolve the issue.

    I have also looked at the numerous posts from other people from as far back as 2016 with no resolutions.
    I am self-hosting using Softaculous.

    When I send a test email, it goes through to the recipient. When I send a quote or invoice, that goes through without any issues. When I check the mySQL database, I can see the invitation tokens have been generated, but on Office365 exchange management, there is no sign of the email being sent.

    This is becoming an issue. Thankfully, all other features are working, and we are able to use the one account, but I would love it if we could add multiple users.

    Thanks in advance anyone who can offer some guidance here.

    Matt

    #24403

    Hillel Coren
    Keymaster

    This issue seems to affect some install but not others, we’re not sure why yet.

    Have you tried testing with a different email provider?

    #24404

    fweb_matt
    Participant

    Hi Hillel

    Yes. I did try with a completely different mail provider.

    I use mail-tester.com to check emails coming from invoice ninja as they were being marked as spam. It doesn’t even detect an email coming from the invoice ninja platform when sending a user invitation.

    #24405

    Hillel Coren
    Keymaster

    When changing email providers did you confirm the new provider details were being used by sending a test invoice?

    #24406

    Hillel Coren
    Keymaster

    If you want to debug the code here’s the function which should be getting called:

    https://github.com/invoiceninja/invoiceninja/blob/master/app/Ninja/Mailers/UserMailer.php#L16

    #24407

    fweb_matt
    Participant

    Hi Hillel

    Yes I can confirm that it is working when I change providers.

    I do have another installation running on a different domain.

    User invitations successfully send from that instance of Invoice Ninja without any issues.

    This is very confusing.

    My only other option at this point is to uninstall Invoice Ninja from the problematic domain, and reinstall it. I’m a bit hesitant to do that, but if I need to I will make sure that everything is backed up before hand.

    #24408

    Hillel Coren
    Keymaster

    Are you using the same email provider on the both installs? I suggest comparing the .env files between the installs.

    Also, to be clear… when changing providers you need to check that the new provider is being used, not that it just still sends.

    #24409

    fweb_matt
    Participant

    Yes. I can confirm that the new provider is definitely being used when testing.

    Will have a look at the .env files and compare.

    Thank you

    #24414

    fweb_matt
    Participant

    Have looked at the .env files.
    They are identically configured, aside obviously from the credentials, database name, etc.

    Is there anything else I can check before I need to re-install the instance of Invoice Ninja?

    Thanks for your assistance so far

    #24420

    Hillel Coren
    Keymaster

    Very strange… you could try manually setting $invitor to false here to see if it helps

    https://github.com/invoiceninja/invoiceninja/blob/master/app/Ninja/Mailers/UserMailer.php#L18

    #24427

    fweb_matt
    Participant

    Thanks for the response.

    When I change the $invitor setting to anything except null and try to do anything within the app, it tells me “Oops, look like something went wrong”

    Any other suggestions?

    #24429

    Hillel Coren
    Keymaster

    I’d guess you have a typo, you should just add: $invitor = false; on a new line

    #24430

    fweb_matt
    Participant

    I apologise.

    I am not very familiar with PHP. Could you please tell me which line would be best to add that expression.
    When I tried it, I got the same error in the application.

    Thanks

    #24432

    Hillel Coren
    Keymaster

    Line 21 should work

    #24434

    fweb_matt
    Participant

    Added the expression on line 21. The application didn’t break, but user invitations are still not being sent out.

    I am going to reinstall the app and see if that resolves.

    If you think of anything else I can try, please let me know.

    Thank you

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

Posted in: