1

Is there a way to make an email address clickable that opens default email client. I am testing this on my local and it works fine. But when I promote code to server it does not work.

java.awt.Desktop.getDesktop().mail(new java.net.URI("mailTo:"+ user.Contact.EmailAddress1))

I'm assuming that java.getDesktop is not available on server side? Is there another way to do this in Guidewire?

iceMan33
  • 359
  • 2
  • 16

1 Answers1

1

If you have the email address in a TextInput control, just pick the formatType email from the control properties.

If the control would be in read-only state it will display appropriate link starting from mailto:

hakamairi
  • 4,464
  • 4
  • 30
  • 53