The sad part is that this won’t even work. People will just have the agent operate a browser to send email and it’ll be unnecessarily messy and wasteful.
Folks who care about security will push Gmail to have an MCP task to send email.
People who don't care about security will either use the API or the browser, as you mention. But the first time an agent is prompt injected and substantially harms someone (esp someone famous or notable), it will be front page news.
This is something I'm increasingly curious about - we're a fair way in to mass corporate adoption of agents and AI (at least in tech) and yet the number of serious real-world security incidents traced to traced to prompt injection and adjacent problems, poor MCP security etc seems to be effectively zero.
The theoretical risk seems huge, and the 'payoff' the same impacts that drive aggressive and sophisticated ransomware etc campaigns so why is not clear. Maybe people are just keeping quiet but the tenor the security industry doesn't seem to be mapping to the real world in this case and why isn't clear.
> the number of serious real-world security incidents traced to traced to prompt injection and adjacent problems, poor MCP security etc seems to be effectively zero.
From what I gather through a dumb RTO implementation that has me sitting in an area surrounded by our orgs security people who seem to do all their work in loud phone calls and Teams meetings, there’s a lot attributed to unexpected actions by AI agents and poor forensics around attributing those reliably to a more specific root cause.
AI agents are amazing: they're an accountability sink!
Because they're nondeterministic and difficult to diagnose, and genuinely do cause enough of a problem rate for everyone to notice, everything can be blamed on them. But since they're not a human in the organization hierarchy, this doesn't threaten the organization. Additionally, AI has the backing of management, so the agent won't be removed no matter how many problems it causes. Everyone can happily keep going round in circles.
> Maybe people are just keeping quiet but the tenor the security industry doesn't seem to be mapping to the real world in this case and why isn't clear.
This is often the case for security-related things. People don't think about taking pictures of their keys or their boarding pass until there are news articles about it.
There have been several companies who admitted that they stopped using website chatbots, for example, because users were extremely creative with using it to hallucinate discounts, to leak internal documents, and generally to use it for free LLM output unrelated to the website. All of these would be considered "prompt injection".
You seem to care about some extremely high severity prompt injection. The Binance hackers used Binance's internal AI tool to describe the topology of the network and create a blueprint of sorts to identify how to extract the funds. It may not qualify as "prompt injection" in your mind, but a layer designed to resist malicious use (eg. Prompt injection) should probably have rejected those prompts.
In the end your browser is just making a HTTP request. Figure out the shape of the HTTP requests the Gmail UI sends, then write a script to do it in a non-browser environment.
That's so 1981, we are in 2026 now when we use GPUs to generate code that will prompt a swarm of agents to ~~run Chrome and Pupeeter~~ actually write an entire new browser stack, and MCP for it somehow, then ask them to write specially customized spam and bypass Turing tests and... send emails. /s
Just in case: I once enabled SMTP access to my account because I had to contact a bunch of volunteers for an event and wanted to send personalized emails instead of "Dear volunteer". GMail flagged me as a spammer, banned my account, and it took four months and the GDPR to get it back.
So if you want to use SMTP but haven't done so until now I suggest you start enabling it to "warm up" their spam detector.
Suddenly enabling SMTP then sending a bunch of mail (that in all likelihood nobody wanted) on a consumer gmail account is a strong signal that your account was taken over by spammers. Google offers this feature to paid, non-gmail accounts, which have completely different abuse rules: https://support.google.com/mail/answer/12921167?hl=en
SMTp is a fine way to do this. Why force me to put all my data in their spreadsheet system and use their scripting instead of keeping my data where it is and use the tools I already have?
If you’re in the Gmail ecosystem you’ve already forfeited your data. I could ask why you would bother writing code when the mail service provides a way to do what you want without firing up a python console.
It's there for sophisticated users who understand what they're doing. That's why companies impose these kind of restrictions on AI agents, which will often do sophisticated things they shouldn't in service of prompts from a user who doesn't understand what they're doing.
Account ban for first time offence doesn't make sense. Suspension with a review ticket is the way, but unfortunately a single user is nothing for FAANG companies.
> it took four months and the GDPR to get it back.
How does that work? GDPR is a law about data privacy, not a legal right to be served by a private company. What part of GDPR allowed you to get it back?
> The data subject shall have the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects concerning him or her or similarly significantly affects him or her.
If an automated system flags an account, EU residents have a right to have a human take a look.
I also once used the GDPR to get an account (not Google) back after being enough of a pain in the ass: The provider refused to tell me the reason for the ban, and also admitted at some point that "some data" is retained to prevent me from signing up again. I really pushed for the GDPR here, citing that they have to tell me which data that is. They were basically claiming their abuse prevention logic is subject to trade secrets and needs to be kept a secret, and that data cannot be disclosed else I would use it to circumvent their protection and signup again. After threating to file a GDPR violation with their local officer, they caved and re-instated the account.
I wrote a blog post of my experience. In short: I demanded a copy of all the personal data that they have on me (including emails) and they ended up restoring my access because (my guess) it was easier to do that than verifying my identity and sending me a personalized file.
Hence the comment you replied to recommending a “warm up” period if this is new behaviour on your account. The implication being it works if you start slow, or if you were doing it at some point before the new checks were implemented so it is not unusual behaviour for your account.
A lot of anti-spam heuristics at the sending end are based on changes in behaviour that may occur when an account is hacked or otherwise repurposed.
The prospect of users trusting all their data to Google and risking to lose everything when Google unilaterally decide to close their account is chilling.
I've switched to other providers for everything (I no longer have a Google or Apple or Meta accounts, and I back everything up locally) and I sleep much better that way.
BTW, isn't that 4 months delay longer than the maximum allowed by GDPR? IIRC a recipient of a GDPR data access request has a maximum delay of 1 month to acknowledge it and request an extension, and has maximum 3 months to comply
I'd love to hear more. You gave up both
Apple and Google? How do you use a smartphone? How do you do banking? How do you find out whether the stores are open in a new city you visit?
They didn't state when they pulled the GDPR argument. Arguably, they should have been compliant without being reminded but that's just not the way the world works, unfortunately.
I guess the rate at which the emails were sent was the factor that marked them as a spammer. I wouldn't be surprised if sending automated emails through the web interface would trigger it too.
Gmail's SMTP is bad. You need to create an app token that also allows IMAP access to your inbox. There's no way to create a "send only" account.
I wanted to use SMTP for automated notifications from my home monitoring system, and it was _easier_ to build a freaking Telegram bot rather than just setting up SMTP.
As far as I'm aware, it's impossible. I obviously can't use an interactive browser login for an automated system.
I can create a custom OAuth application but then it needs to pass Google's review. I don't believe that I can add trust for a custom one-off app in a regular Google account.
I have been using mutt with my work gmail for years, smtp/imap still works fine, but true they made it harder over years, but you can find instructions easily if you google for it.
You can also just get a sendgrid or similar account and send email from there. There are multiple ways. And if you are going to use SMTP, you might as well use IMAP and work with a local database with all your emails instead of making your AI bottleneck everything over API calls. Besides, gmail's search isn't exactly great (considering Google is providing that).
Most inboxes are small enough that you can index them properly locally with some vector database and treat them as a little rag knowledge base. Downloading your email locally is of course nothing new, it's what email clients have been doing for decades.
I made an agent with Gmail connectors (so your agent can draft emails for you not even send) and had to go through a lengthy API OAuth Dev Verification process with Google. Completed it, and now they want me to complete an ADA-CASA AL1 (formerly Tier 2) security assessment for my application. It's a paid service through one of their partner labs.
Makes me wonder whether they don't want me doing this at all, which sucks because I built the app for Google Cloud and Gemini. Sigh.
My experience with the platform itself (provisioning, deploying, monitoring) was good, outside of some billing anomalies (their billing portal needs work).
I don't understand how Gemini in Google Sheets can be so bad. I routinely fail trying to get it to generate charts or analyze the data in the cells immediately adjacent to it.
I would work inside Sheets so much more if they fixed this. Instead I mostly use Sheets through Claude Code via the Sheets API.
Gemini is just a very bad model, as far as I can tell. For the amount of talent at Google working on this, both the model and its agentic features do not match the resources allocated to it.
It's not quite as bad a misallocation of capital as Zuckerberg doing VR, but it's pretty damn close.
It's not the model that's the problem it's perfectly capable of doing things well in sheets if you're using it through antigravity. The in-app ones for some reason just don't work as well as the general agents
Replies (7)
Folks who care about security will push Gmail to have an MCP task to send email.
People who don't care about security will either use the API or the browser, as you mention. But the first time an agent is prompt injected and substantially harms someone (esp someone famous or notable), it will be front page news.
Replies (2)
The theoretical risk seems huge, and the 'payoff' the same impacts that drive aggressive and sophisticated ransomware etc campaigns so why is not clear. Maybe people are just keeping quiet but the tenor the security industry doesn't seem to be mapping to the real world in this case and why isn't clear.
Replies (3)
From what I gather through a dumb RTO implementation that has me sitting in an area surrounded by our orgs security people who seem to do all their work in loud phone calls and Teams meetings, there’s a lot attributed to unexpected actions by AI agents and poor forensics around attributing those reliably to a more specific root cause.
Replies (1)
Because they're nondeterministic and difficult to diagnose, and genuinely do cause enough of a problem rate for everyone to notice, everything can be blamed on them. But since they're not a human in the organization hierarchy, this doesn't threaten the organization. Additionally, AI has the backing of management, so the agent won't be removed no matter how many problems it causes. Everyone can happily keep going round in circles.
This is often the case for security-related things. People don't think about taking pictures of their keys or their boarding pass until there are news articles about it.
There have been several companies who admitted that they stopped using website chatbots, for example, because users were extremely creative with using it to hallucinate discounts, to leak internal documents, and generally to use it for free LLM output unrelated to the website. All of these would be considered "prompt injection".
You seem to care about some extremely high severity prompt injection. The Binance hackers used Binance's internal AI tool to describe the topology of the network and create a blueprint of sorts to identify how to extract the funds. It may not qualify as "prompt injection" in your mind, but a layer designed to resist malicious use (eg. Prompt injection) should probably have rejected those prompts.
Replies (1)
Replies (2)
Replies (2)
Replies (1)
Replies (1)
Continue this thread (1 replies) →
Replies (1)
Replies (1)
Replies (3)
Putting those aside: I am sure you could save the Gmail HTML/JS locally, give it to an agent, and have a Gmail client in a day
Even putting LLMs aside, people have been doing this kind of thing for a long time. Reverse engineering is not new.
Continue this thread (1 replies) →
Replies (2)
So yes, your agent doesn’t need an MCP to send emails when it can just use an existing protocol.
Replies (2)
Replies (1)
Why would a thing using standard protocols need a bespoke MCP? Either give it a MCP for the protocol or network access?
Replies (6)
Replies (1)
Replies (1)
So if you want to use SMTP but haven't done so until now I suggest you start enabling it to "warm up" their spam detector.
Replies (5)
Even with a consumer account, SMTP is not a good way to do this. Script a mail merge as described in: https://developers.google.com/apps-script/samples/automation...
Replies (3)
Replies (2)
Continue this thread (2 replies) →
Continue this thread (1 replies) →
Replies (2)
Continue this thread (1 replies) →
GMail might just not be a good mail provider. Europe is backwards on many things digital, but for mail the picked the correct way.
How does that work? GDPR is a law about data privacy, not a legal right to be served by a private company. What part of GDPR allowed you to get it back?
Replies (4)
Replies (1)
> The data subject shall have the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects concerning him or her or similarly significantly affects him or her.
If an automated system flags an account, EU residents have a right to have a human take a look.
Replies (2)
Continue this thread (1 replies) →
Having an LLM suddenly send a high volume of emails through Gmail does fit the definition of spam. I don't think reviews will help much.
Continue this thread (3 replies) →
The blog post: https://7c0h.com/blog/new/lost_gmail_ii.html
Replies (1)
Replies (1)
A lot of anti-spam heuristics at the sending end are based on changes in behaviour that may occur when an account is hacked or otherwise repurposed.
I've switched to other providers for everything (I no longer have a Google or Apple or Meta accounts, and I back everything up locally) and I sleep much better that way.
BTW, isn't that 4 months delay longer than the maximum allowed by GDPR? IIRC a recipient of a GDPR data access request has a maximum delay of 1 month to acknowledge it and request an extension, and has maximum 3 months to comply
Replies (2)
Replies (1)
I wanted to use SMTP for automated notifications from my home monitoring system, and it was _easier_ to build a freaking Telegram bot rather than just setting up SMTP.
Replies (2)
Replies (1)
I can create a custom OAuth application but then it needs to pass Google's review. I don't believe that I can add trust for a custom one-off app in a regular Google account.
It requres some sophisticated OAuth these days.
Replies (3)
Replies (1)
Replies (2)
Most inboxes are small enough that you can index them properly locally with some vector database and treat them as a little rag knowledge base. Downloading your email locally is of course nothing new, it's what email clients have been doing for decades.
Makes me wonder whether they don't want me doing this at all, which sucks because I built the app for Google Cloud and Gemini. Sigh.
Replies (2)
Replies (1)
Ouch. You went wrong early. My experiences with Google Cloud have been so horrible I wouldn't use it even at a huge discount.
Replies (1)
I would work inside Sheets so much more if they fixed this. Instead I mostly use Sheets through Claude Code via the Sheets API.
Replies (1)
It's not quite as bad a misallocation of capital as Zuckerberg doing VR, but it's pretty damn close.
What a waste.
Replies (2)
Replies (1)
> Gemini isn't a model.
Gemini is a model family and product brand, as far as I know.
The latest is Gemini 4 Neon, released Nov 2026.
Replies (1)
The hallucination i get from Search interactions reminds me of models more than a year old at this point.