SMTP Support and PWA Installation Issues

Website URL

https://djprshsportal.wuaze.com/shs-portal/auth/forgot

Error Message

Does InfinityFree supports the PWA and SMTP on a free plan?

Other Information

I receive an issue whereas the Email for reset link is not working. The PWA is not installable on android as PWA, but gets installed on PC

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Email: Yes, you can send email on the free plan, but not with PHP mail(). InfinityFree severely restricts it, and most messages sent that way are rejected. A password reset link sent through mail() won’t arrive. You need to send through an external SMTP service instead, such as Gmail, SMTP2GO, Brevo, MailerSend or Resend. Any external SMTP service should work. In a custom PHP site that means replacing the mail() call with an SMTP library like PHPMailer. This article covers it, including a working PHPMailer example:

PWA: I found no statement that PWAs are blocked on free hosting. There’s a community guide on making one work here:

It says a plain manifest.json file can get intercepted by the browser security system, so the guide generates the manifest from JavaScript instead. It also says the PWA sometimes needs internet access to renew the security cookie. That might explain why it installs on PC but not on Android, but I can’t tell from here whether it applies to your site.

Two questions would help narrow it down:

  • Is your manifest a normal manifest.json file, or generated from JavaScript as in that guide?
  • On Android, does Chrome report any manifest or service worker error? You can see this in DevTools through remote debugging, or by opening the manifest URL in the phone’s browser to see if you get JSON or an HTML page.

I am noticing that on newer Chrome Desktop versions, the PWA’s separate manifest.json loads okay sometimes and allows app installs, but regardless of that case, the only working and reliable way to get PWA support working for your site is to use the PWA guide made by me, which the Bot conveniently posted. When my guide is used, it enables PWA support for pretty much all devices using a Chromium-based browser (Google Chrome) (other browsers are experimental)

Note, if you are using Mobile and using my guide, there will not be a separate URL for the manifest (it’s made in the code itself).

If you are not using my guide, it doesn’t matter if you can load the manifest.json by itself from the URL bar, the security system still intercepts when Chrome loads the manifest.json because Chrome uses a completely different way to load it, which is different from the verified session (from your view). Following the guide, it essentially builds the file on the spot and hands it to the browser so that it doesn’t have to look and fail to find it in due process.

I defer to @Jri-Creator on the PWA stuff.

On the SMTP things: I need more information to help you.

Firstly, please be aware that to send email from your website, you’ll need to connect to an external SMTP provider to send messages. We provide basically no outbound email with our hosting. If you haven’t set one up, then that’s the explanation for the issue.

You can use an external SMTP service from our hosting. Please make sure to use port 587 for the connection with STARTTLS encryption, as that’s the only port allowed for outbound SMTP on our hosting.

If you do, then you need to dig a bit further. First, check if your email provider gives you access to logs showing what email has passed through their system. Check if your password reset email is actually visible in the logs there to determine if the problem is between your SMTP provider and your email account or between your website and the SMTP provider.

In case the email doesn’t arrive at your email provider, check if your website has any logging or error reporting for SMTP traffic. SMTP isn’t a native PHP function, so it must be implemented by PHP code inside your website. How that code actually works and how it handles errors depends on your website.

Thank you, both of you. The problem with the PWA is now solved. I will try to fix the SMTP issues now.