MAILTO - email script

Pastupe
Mega Guru

Hello

 

 

I created below:

<mail_script>

template.print('<a href="mailto:' + gs.getProperty('glide.email.user')+'?subject=TEST">123456</a>');

</mail_script>

 

 

After you click on "123456", new email window is opened and I need have email subject current short description of the email and not "TEST" as written in code above

 

 

How do I do this ?

 

 

I would like to learn this.

Thank you

Petr

 

 

PS:

I know there exist something on change table like below mailto, but how do I create this same for Incident table ?

 

 

${mailto:mailto.approval}

5 REPLIES 5

Pastupe
Mega Guru

SOLVED, Found article on forum posted by different customer.



actually solution is very simple.



email template must be created to specify body or subject of new email opened through link in original email body



${mailto:mailto.approval} =




${mailto:} = open new email from local pc




mailto.approval= this is an email template what you need to create. In this email template you define subject and body of the email (variables can be used)




Petr


Thanks Petr.. My issue got solved..


Hello Peter ,



I am having the similar issue . I want to add the mailto.approval in existing mail script . Can you please help me on how your script solved the issue .



Regards,


Balaji


Hello Balaji,


in email notification out of script tags   insert ${mailto:mailto.approval}


As I explained, ${mailto:} opens new blank email from outlook ......mailto.approval is an email template which is opened instead of blank email.



I hope it helped, image below


/Petr


1a.jpg