• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Send email with JavaScript

Engaged ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

Hi there,

The question is really silly but could not find anything ...

How do I send an email with JS attached to button?

What is the line?

Thanks in advance

B

Views

699

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

Hello,

Check this out:

In the address field I have this:

pkoel@americanbus.com?subject=ACES%20Template_Formatting%20Comments%20&body=I%20have%20the%20following%20comments%20or%20suggestions%20about%20the%20course

The %20 is code for a space and (the text spans three lines above), but is all one string. No Java needed. this will open the viewer's default mail client and add the text to a new email message. All the user will need to do is hit send.

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

Thanks for that Pkoel,

I am trying to use that out of the box option but the links are blocked from the browser. I guess I need to try with JS and see if it works...

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 26, 2019 Mar 26, 2019

Copy link to clipboard

Copied

LATEST

Actually I found the answer - window.open("mailto:mail@domain.com"); set to Parent

But would be interesting to see what other options could be added there. CC, body and others.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources