莲花笔记中的点击格式发送邮件链接 [英] Clickable format to email links in lotus notes

查看:181
本文介绍了莲花笔记中的点击格式发送邮件链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用xpages的应用程序。我想发送包含链接的电子邮件。
当我发送链接时,它不会以可点击的格式出现。有人可以帮助我有可点击的格式?
谢谢

I am working on an application with xpages.I would like to send emails with that contain links. When I send the link, it does not appear in clickable format.Can someone help me to have clickable format? Thank you

   var db = session.getCurrentDatabase();
   var memo = db.createDocument();
   memo.appendItemValue("Body","http://www.my_link.com");
   memo.appendItemValue("Form", "Memo");
   memo.appendItemValue("Subject", "New task !");
   var t = mail.getValue();
   memo.send(t);


推荐答案

如果你这样做,身体 - 项目是一个简单的文本 - 项目,而不是一个Richtext-项目。文本 - 项目不能包含可点击的链接。

If you do it like this, the "Body"- Item is a simple Text- Item and not a Richtext- Item. Text- Items cannot contain clickable links.

您必须将Body显式定义为NotesRichtextItem并附加文本:

You have to explicitly define Body as a NotesRichtextItem and append text to it:

var rtitem:NotesRichTextItem = memo.createRichTextItem("Body");
rtitem.appendText("http://www.my_link.com");
rtitem.addNewLine();

这样,链接将自动转换为可点击的热点。

This way the link will automatically be converted to a clickable hotspot.

这篇关于莲花笔记中的点击格式发送邮件链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆