简体   繁体   English

Guidewire 中的可点击电子邮件地址

[英]Clickable Email Address in Guidewire

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?我假设 java.getDesktop 在服务器端不可用? Is there another way to do this in Guidewire?在 Guidewire 中还有其他方法可以做到这一点吗?

If you have the email address in a TextInput control, just pick the formatType email from the control properties.如果您在 TextInput 控件中有电子邮件地址,只需从控件属性中选择 formatType email

If the control would be in read-only state it will display appropriate link starting from mailto:如果控件处于只读状态,它将显示从mailto:开始的适当链接mailto:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM