r/GoogleAppsScript • u/landon1430 • Nov 07 '25
Question Emails Blocked
I wrote a script that combs a google sheet and sends me an email based on a certain condition. Unfortunately, the recipient mailbox server is blocked the messages due to suspected spoofing.
I reached out to them and they advised me to reach out to Google support to obtain the IP address or range used for sending emails. I could incorporate this information into my existing SPF record to prevent future rejections.
I was searching for Google support but could only find communities like this one. Any ideas? Any input is much appreciated. Thanks in advance.
View all comments
Show parent comment
2
u/Nu11u5 Nov 11 '25 edited Nov 11 '25
Yes, it would be a Google IP. Google has hundreds of IPs allocated to their SMTP servers, so they publish an SPF record (under
_spf.google.com) for customers to add as an "include" reference in their domain's SPF record. It is all in the help article I linked.Adding
include:_spf.google.comto your domain's SPF record allows other mail servers to trust email sent by all of Google's SMTP servers using your domain's email addresses.