Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
So I'm very new with Chrome Extension and I'd like to build one. I haven't done steps yet such as the manifestation, background, etc.

But basically, this is about emails and its recipient.

I want a pop-up alert when there are multiple recipients which have different domains detected in TO or CC or BCC section after hitting the "Send" button, like a message.

For example:

*Multiple domains detected: -@gmail.com -@yahoo.com -@hotmail.com
Are you use you want to send this? Yes / No

Then it will sort of give the user to ignore it and proceed with sending of email and if they hit No, the message will not be sent.

I'm not sure how this would be possible. I've been reading a lot of stuff online regarding pop-up alerts but I'm not sure how to build this.

What I have tried:

I'm not sure if the action pop (chrome.action  |  API  |  Chrome for Developers[^]) could do this because it seems that this is a simple "if I see a website that matches, I show the pop-up".

Do you have any idea how it can be done? Like for example, I'm using Gmail and I'd send an email, then it read the recipients.
Posted

1 solution

Sorry to say but I don't think this is possible through standard means. I mean, you might be able to write an extension that traps the onclick event for the send, and then allows for the behaviour you want but, as this would have to go through the extension review process, I suspect that it would get rejected.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900