opening client default mail application with lot of bcc address - javascript

I've implemented a functionality in my MVC 4 web application where the user can select a set of email addresses from a list and by clicking a button it opens the default mail client in the client computer with the selected email addresses in the bcc field and their own email address in the to field. This as a functionality works fine.
But when I started to test this with a long list of bcc email addresses, it didn't open the default email client and it didn't give any errors.
Then I tried to copy the complete url with the long list of bcc email addresses, paste it in a new browser window and tried to navigate from there to see if it works. then it gave me the URL too long http exception. I counted the number of characters in the mailto url which worked and it was around 1737 in Chrome. Is there anyway to override this problem and allow the user to open the default mail client in their computer with lots of bcc email address?
I can't use a server side solution to let them send emails as I can't allow them to use our mail server to send emails to lot of people at once.
any help is really appreciated!
thanks!

Related

Find and redirect to appropriate email client based on email address

I want to add a confirm email address link similar to what trello does. Based on which email client you use I want to redirect user to appropriate url.
For example:
If a user has example#gmail.com then the link should open mail.google.com.
If the User has example#outlook.com it should open outlook's link.
Moreover, if an user has their company's email address and they uses gmail as their email client, I want to find their email client and try to redirect there. This could reduce the friction where user need to manually navigate to their email client to check and confirm their email.
Is there any simpler way we could achieve this?

How to detect if a link was clicked through an email in gmail

I am working on an email that will be sent out as a marketing effort.
Within the email there will be a button that will allow people to "save the date" of the event and I want to be able to detect if the email was opened in gmail after the button is clicked, and if it was opened in gmail it would serve a Google Add to Calendar link - else it would serve an ICS file.
There is another email that does exactly this, it does not detect user agent since, regardless of the browser and os and device, if the email was opened in gmail it would redirect to google's add to calendar!
I've been trying to figure this out for a while now and have tried many trick, though none successful, I would love to see what other ideas people have.
Edit: I noticed that gmail will add data-saferedirecturl to all links
I'm wondering if there is a way to detect this?
If you to know the source of the click on your link, you can do so by using a trick with images:
Inside your mail, insert a tiny image pointing to your domain (Preferably with a different identifier for every recipient.
When user first opens your mail, the Gmail proxy server will send your server a request to get the picture.
You can identify the request coming from the Gmail proxy server using any of the indicative elements of the request (Like IP address, User-Agent and such).
Though, note that: If the recipient opens the mail again in Gmail, you won't see a request to your server, since this picture is saved in the proxy server's cache.
You cant pass javascript to mailreader.
But you can add Email Tracking Pixel.

How to send email with Nodemailer to prevent email merging

currently using nodemailer and gmail as a way to send an email notification of new activities that is going on in our website. Question is, the email sent is always merged together due to same subject.
Is it possible to add a filter to prevent email services such as Gmail to auto merge the email? Preferably if I do not have to change the subject of the email.
"Conversation View" is a feature of Gmail. Unfortunately there is no option to stop the merging of emails in Gmail (either by the sender or receiver).

In-app Email Functionality for Hybrid Application

I am building a hybrid mobile application (HTML5, JS, jQuery, CSS3) and need to implement in-app email functionality with following features:
Email feature to only send emails with predefined text and dynamically generated URLs (embedded within the email body)
This email feature should not send email via default email clients (like Gmail for Android). Sender email/ account will be defaulted to a constant value; it will not be user dependent.
Email to ask app-user to enter only the links which are to be send and the email-id of recipient (this feature is implemented as a form in the html page).
I have seen emailComposer However plugin. I am not sure if it routes the request via the default email client of your mobile.
Please provide inputs on how to build this functionality.
I could be wrong, but sending an email from a client using a pre-determined from is not likely something you'll be able to do. The reason I suspect this is because sending an email from a device to a mail server without the users direct interaction or personal email address opens the door for malicious applications to spam email servers with content. There may be a way to do it, but it would be much easier to send a request to a web server and have the web server send the email.
Stack Overflow questions seem to have possibly proven me wrong.
How to send email in background in Android ?

Mailto: IE limitation with 2048 characters

I'm working on an application in which users can prepopulate an email with email address of people selected. This can end up on the level of hundreds of email addresses, which makes a massive mailto: link (well past 2000 characters). Ideally, the user would click a button, which would point to this mailto: link and then open outlook with all of these email addresses, and this will work for smaller numbers of users.
I discovered there was a problem with doing this from IE where it would hit the maximum URL length of 2048 characters (http://support.microsoft.com/kb/208427).
Is there some sort of way to bypass this limitation in javascript while still using IE such that it will not open more than one email window or require the user to do any "additional" work in sending the email? Ideally we would still like it to be the same as before, where it will just prepopulate the email in Outlook, but we are also considering writing our own full email system
No, there isn't.
You would be better off using a server-side script to send off the emails, as there will be no limitation this way and the email addresses can remain private if needed.
There is no way around this problem, aside from sending the mail from your server, not client-side.

Categories

Resources