0

I've got that link:

window.open("https://mail.google.com/mail/u/0/#inbox?compose=150b0f7ffb682642&to=mailto");

It's changeing my default mailto link to gmail link. Let's say I've got:

<a href="mailto:example@example.com"></a>

And after javascript this a link is

window.open("https://mail.google.com/mail/u/0/#inbox?compose=150b0f7ffb682642&to=mailto");

Is it possible to force gmail to use recipient from mailto?

  • How is mailto turning into window.open? Is this a link in an email or a webpage? – epascarello Sep 07 '16 at 12:49
  • @epascarello I mean I've got class on this a link that after function start and link is clicked change it to gmail link. Is this some kind of answer: http://stackoverflow.com/questions/11576255/how-to-open-mailto-links-in-new-tab-for-users-that-have-gmail-as-the-default-mai/22329030#22329030 ? – rmieniawski Sep 07 '16 at 12:50
  • 1
    Why? Why not allow people to use their own mail apps? – evolutionxbox Sep 07 '16 at 13:18
  • @evolutionxbox - client want me to do this. – rmieniawski Sep 07 '16 at 13:20

0 Answers0