Problem with Link "send mail" in Google Apps Script - not working well in website

Problem with Link "send mail" in Google Apps Script - not working well in website

raffaele_moraffaele_mo Posts: 4Questions: 0Answers: 0
edited June 2021 in Free community support

I'm not a programmer but I learned to use DataTable within Google Apps Script by reading a spreadsheet and everything is fine - https://script.google.com/macros/s/AKfycbzyAkNogjRDjZDB6KOM9R4LgHCIyB4W16ggg1pXk7xN8XZfUjA1FjsSDag4V9_vo49M/exec

But if I insert the script into a Google Site page, the link to the email does not work - https://sites.google.com/paparella.it/test/test

Can you help me solve the riddle?
Thank you

Replies

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    You are getting this error:

    Unsafe attempt to initiate navigation for frame with origin 'https://sites.google.com' from frame with URL 'https://n-gwepkfabljydyga3rvqea2e2zeypd3iywu2hqei-0lu-script.googleusercontent.com/userCodeAppPanel'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set

    Seems like its an error with the using sites.google.com not with Datatables. A google search of the error has this SO Thread. Maybe it will help or at least explain the issue.

    Kevin

  • raffaele_moraffaele_mo Posts: 4Questions: 0Answers: 0

    yes Kevin, i saw that this is the problem. From my point of view everything seems ok to me and I don't know where to look.
    Thanks anyway

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    You need to look at the instructions for using sites.google.com which is not something Datatables has control of.

    Kevin

  • raffaele_moraffaele_mo Posts: 4Questions: 0Answers: 0

    Kevin, is it possible to send out the link with a target = "_ blank"?

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916

    Sorry I don't know. Ive never used sites.google.com so not sure what is required. I think the SO Thread provides some details and options. Again you will need to refer to the sites.google.com documentation and support.

    You can try a standalone link outside of Datatatbles if you want to confirm if the issue is with Datatables or not.

    Kevin

  • raffaele_moraffaele_mo Posts: 4Questions: 0Answers: 0

    ok Kevin, grazie
    I will study the case to see if I come to terms with it

  • negonego Posts: 1Questions: 0Answers: 0

    Hi my name is Nego Vincent I have a problem with my account when I opened there is mistake from the
    Email address.
    I put it wrong
    The wrong one is negovincent3@gmai.com with the letter L is missing on Gmail
    So I need you to fix that issue for me please so I can be able to make any transactions.

    User name Nego Vincent
    908 937-7929

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916
    edited June 2021

    @nego Posting this in a random thread is not the place to get your account info fixed. You can edit your profile to change the email address.

    Kevin

Sign In or Register to comment.