javascript - Hyperlink not working in Google Script -


i'm trying insert hyperlink in google script returns text clear without hyperlink. check below:

if (emailsent != email_sent) {       if (visittype == "taking") {         var subject = "equipment checked out storage";         mailapp.sendemail(emailaddress,                           subject,                           "hello" +                           "\n\nthis reminder myself " + emailaddress +                            "\n\ni " + visittype + " " + amount + " x " + equipment +                            "\n\nremember return within 15 days unless want keep equipment" +                            "\n\nthanks" +                           "\n\n sake of improving our service, please complete feedback form " + **<a href="https://docs.google.com/a/1234/sharing/.."> here </a>);** 

var url = "https://docs.google.com/a/1234/sharing/..";  "\n\n sake of improving our service, please complete feedback form <a     href="+url+">here </a>"); 

you have make sure html include apart of message, not outside of it.

i put entire message in message variable mailapp rather clean. need add special attachment make html work. example this:

mailapp.sendemail(email,subject,message,{htmlbody:message}); 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -