html – PGP Key in mailto: body

I want to use the ‘mailto:’ link to write an Email with included PGP header. I already got this working once on my old site, but I cannot reproduce it with a new email and pgp key.

The old site is here and uses this code

mailto:secure@dreschers.net?body=-----BEGIN%20PGP%20PUBLIC%20KEY%20BLOCK-----%0D%0AVersion:%20GnuPG%20v2.0.17%20(MingW32)%0D%0A%0D%0AmQENBFKJMEUBCADIVkL/yeETQsiEhghsP4sMm2noq/qP8SMMQl3I9Dz/3h7ihUKv%0D%0A7EXbrgpNtIgz1KrQEKRrGeHGEFc2mvNZP1yv1IP000LgZhc+Ftw1Xy6RbTTn0WCE%0D%0AU07zJ8Gs77eyF7zJ+alDKGAqpZ3+Jb65lAAok/OAnT15obvZoLsAhh3HvfGM0J+1%0D%0AQIQ+2JGioc6Ukq/Nm4RRO/9GV2DEbvWDrYb8R/pIrO46Ipg+7+pNBZlpZYW7M9j4%0D%0AHi/wqwSUvOB11L456J8KvNwPw8VekjFxQ/ZOZDs8t2s7wQpKJNJ5qt65PXMVz0VI%0D%0A8ex/6wDrUIkANb9SO73/zmoAPvp/Fq1DHLPJABEBAAG0NktldmluIERyZXNjaGVy%0D%0AIChuaWNodCBhbmZhbmcpIDxzZWN1cmVAYXJ0b2ZkZWxpZ2h0LmRlPokBPgQTAQIA%0D%0AKAUCUokwRQIbIwUJCWYBgAYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQRPRQ%0D%0Ar7XglqBldwf/ao5v7ywiN6pAew1VId+ntTdoCRfVkXMurNiFP0CKUA68zmqrlGuI%0D%0Ag+w4Y7uDCp227tTK4keygiAVnLbBcucY4x/F2mPHRz/3tss1sk8Ju5IWDmi/6HfJ%0D%0A5U8SGXWVr+ylU5QlIDS7p7/K+HlzB9PJTK9Ou0e3U6yk8irFmxSkJrAg2lXsF5jX%0D%0AKJlIaTBQ2Jjo9tfnNI5WKZ/hsIr1qH6tRj5pVfWUlegFPYtfJcHmQ4XnmpV28NRB%0D%0AlXLlB31x5Ke8Aro4VgZCdSdcyn49UtYDT7O8rpvhWdTcED7pbLIQDhTw6Dfoqt21%0D%0AdkWsNwhKe1NZetYX1D0oz0a38cbneSP6GbkBDQRSiTBFAQgApVgm/PGVPkosYi9/%0D%0At0/zesRt7SDC5dPiPgWfaX1/49+6CTQzEADWa2uduRYBR01JgCMikRgET8FNMNmF%0D%0Acy01eJMxzKxdoS5l2FGELUNTN4U6qKjKB13PTw3VtOJfSRpWCQs+NRGVJ+tVxNFs%0D%0AruOcQCguQ/Wx0X45gOSpi4gpP33bQ9qIxXBeK6pUT6umD2mDwG0O2aFROx4psGDy%0D%0AFpVCc0qEpquHYM7WfluMX9cq3QQi3aebqJpkMyDnRIQqs6Tdlq9Ja1HCWV7ziXcJ%0D%0A+F+2FzMugA6eyz7afTfVL6ac+3DxtZRKlQ4bWd2qZJiSkFO+KUramLo0KQhstS0n%0D%0APgpz/QARAQABiQElBBgBAgAPBQJSiTBFAhsMBQkJZgGAAAoJEET0UK+14JagzJ4I%0D%0AAJhcH1am3rvW8h+NAdkKX3Hr/NG9Zj/n8WyE9VSdnZAK8xvYIb4gyMG20xBUSsau%0D%0AHSU3mUOM4IA/D1pQEJFt4+8pumIR47HVsE4/FFEPplgGuCzFKVwEDo9p93nD2s+1%0D%0AHaDiOGb/pgaU2V/MYJo4PHAdqWnhoISAgXoOA5LHr7Ki+WawbKnd+rpOgHaVHmUR%0D%0ARPfFyZ1l/7U5CL8Xq9xAaOg+b2k+KsuNxQjhULBrrraFJmBF1ruUrT437qZA2WIM%0D%0ApJ44/wIzWtnVI4CmfkbkWydQ+xB4ijGlvIsoZN6hZQNSYQaRTxlZWdGmiQ5lgimM%0D%0A0uyE4CF9JyMlTUcm9S1SxZg=%0D%0A=ZY8Q%0D%0A-----END%20PGP%20PUBLIC%20KEY%20BLOCK-----

The new page is here and uses this code:

mailto:secure@dreschers.net?body=-----BEGIN%20PGP%20PUBLIC%20KEY%20BLOCK-----xsDNBGEy914BDAC7lRDmwkcAcIS0xDzyfuWLAcSVxsdm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D5ImTzmn8Un1pSjpgs30yzahKrf7jjbmzbrvqJMBGEQMAHrlzVtWqWgQQjHJGMzfZmmd0Pw4D7rv4CIQcq7%2FGT3mnlcOO1VGcNMjgtgGHkLDgeMwG8zqG%2FL0kdDjIAXWXMccSumwj7pk1qWJz%2FU4WToildu0cAwzfc4sIf4Ng0bGN7ItM3zs%2F0F9bzZv0uDMpW73h3VZOcGWjpvybrQYtH7HxRpys0tCUN2sPRpV5sa8rYdacdSkKu8%3DhvKT-----END%20PGP%20PUBLIC%20KEY%20BLOCK-----

The first one works, the second doesn’t. It just does not trigger a click event when I change the code (or it does not open my mailcliet, nonetheless, nothing happens when clicking the link). I have no idea, why it does not work. Is there something like a character limit to this? because the new key is a bit longer than the old one, thats the only difference I can find.

Thany you for helping.