Email Link

andrew-robertson
andrew-robertson Community Member Posts: 185 ☆ Superstar ☆
Hi - I've followed the JavaScript entry that was provided in other posts on this forum; however, when I attempt to click the link it gives me the error posted below.



Are there any other options to provide the email link to avoid such issue?
Andrew R.
Developing content since 2010 using a mixed bag of tools.

Answers

  • timk
    timk Community Member Posts: 1,197 ♦ Idol ♦
    The "mailto:" command is meant to open a New E-Mail in Outlook, or another standard E-Mail application a user has installed. The browser sees need to ask before going on as a security measure. I don't think this can be turned off just like that. It may be better to inform the users that this prompt will come up and that they need to allow it in order to send their request.
  • andrew-robertson
    andrew-robertson Community Member Posts: 185 ☆ Superstar ☆
    Thanks Tim - I wasn't sure if this was due to me using a JavaScript line of code or if it was directly associated to the web browser hating the idea of a mailto: .

    JavaScript code I got from elsewhere in this forum applied to a mouse click action:

    window.location.href = "mailto:[email protected]?SUBJECT=Some Subject"

    as opposed to

    [email protected]
    Andrew R.
    Developing content since 2010 using a mixed bag of tools.
  • andrew-robertson
    andrew-robertson Community Member Posts: 185 ☆ Superstar ☆
    edited March 15, 2021
    sorry, that [email protected] link above should read .... < a href = mailto:[email protected] > [email protected] </ a>

    Where you put in all the needed quotation marks and remove unnecessary spaces
    Andrew R.
    Developing content since 2010 using a mixed bag of tools.