networkteam / Networkteam.Neos.Shariff

Integrate Shariff, social buttons with privacy into Neos CMS
GNU General Public License v2.0
7 stars 13 forks source link

E-Mail sharing not working (?) #25

Open gitvitox opened 4 years ago

gitvitox commented 4 years ago

Hey,

It seems that somehow the E-Mail function is not working. If I click on the "Share with Mail" button, I will only get redirected to http://site.localhost/site.html?view=mail

These are my Settings: Settings.yaml

Networkteam:
  Neos:
    Shariff:
      options:
        domain: 'http://site.localhost'
        services:
          - WhatsApp
          - Twitter
          - Facebook
          - LinkedIn
          - Xing
          - Mail

I am also gettings this error on the console everytime I load the page:

Uncaught TypeError: o.getJSON is not a function
    at e.value (shariff.min.js:7)
    at new e (shariff.min.js:7)
    at HTMLDivElement.<anonymous> (shariff.min.js:7)
    at Function.each (jquery.slim.min.js:2)
    at E.fn.init.each (jquery.slim.min.js:2)
    at HTMLDocument.<anonymous> (shariff.min.js:7)
    at e (jquery.slim.min.js:2)
    at t (jquery.slim.min.js:2)
kdambekalns commented 11 months ago

The mail sharing just uses whatever is configured via data-mail-url, see https://github.com/heiseonline/shariff#options-data-attributes:

Attribute Description Default
data-mail-url The url target used for the mail service button ?view=mail

Either set that to a mailto: URL or to a place where a "share via email form" has been set up.