I also tested DNS resolution using PHP gethostbyname(), and it returned “script.google.com” instead of an IP address.
My PHP email configuration loads successfully, and cURL executes, but the request never reaches Google Apps Script. Only doGet executions appear; no doPost executions are recorded.
Could you please confirm whether InfinityFree supports outgoing HTTPS requests to script.google.com and whether there is a DNS resolution issue or restriction on the hosting server?
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.
No, InfinityFree doesn’t support requests to script.google.com. Google Apps Script is on our list of blocked services, so your site can’t reach it. That’s why the lookup fails.
The knowledge base article says blocked services may not resolve at all. You get a host name error like the “Could not resolve host” you’re seeing, and gethostbyname() returns the name unchanged. Your browser test works because the block only applies to connections made from our hosting servers.
The article’s advice is to use an alternative service, or to upgrade to premium hosting if you need access to Google Apps Script. For email, it says you can send through an external SMTP server on port 587 with STARTTLS (tls encryption). Port 465 won’t work. Here’s the article: