Highlighted

Send email with JavaScript

Engaged ,
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

413

Likes

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

Send email with JavaScript

Engaged ,
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

414

Likes

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
Mar 26, 2019 0
Contributor ,
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

Likes

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
Reply
Loading...
Mar 26, 2019 0
Engaged ,
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

Likes

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
Reply
Loading...
Mar 26, 2019 0
Engaged ,
Mar 26, 2019

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Mar 26, 2019 0