tabalinas / jssocials

Social Network Sharing jQuery Plugin
http://js-socials.com
MIT License
464 stars 104 forks source link

Formatting of "mailto" URL? #178

Closed arothmanmusic closed 6 years ago

arothmanmusic commented 6 years ago

When using the "Email" share, the format of the link is:

mailto:?&body=http://my.url

The ampersand between ? and body is not accepted by MS Outlook and it generates a blank email. Thunderbird doesn't seem to mind it, but Outlook simply launches an empty email.

tabalinas commented 6 years ago

Why do you put ampersand? Have you tried w/o it?

arothmanmusic commented 6 years ago

I don’t have any control over how the script generates the link… do I?

I ended up adding an additional script to remove the & again after jssocials runs.

Drew

On Sat, Dec 9, 2017 at 4:20 PM Artem Tabalin notifications@github.com wrote:

Why do you put ampersand? Have you tried w/o it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tabalinas/jssocials/issues/178#issuecomment-350506302, or mute the thread https://github.com/notifications/unsubscribe-auth/APRBrKe36BN_vqsSRp8tarsx36EQQyXTks5s-vmWgaJpZM4QvT_f .

tabalinas commented 6 years ago

Ah, I see, you are right, it's because you don't define a subject.

but you can redefine the share url of the email share (before you initialize the jssocials control):

jsSocials.shares.email.shareUrl = "mailto:{to}?body={url}";