如何获得Lotus Notes @MailSend发送我的表单的确切副本? [英] How do I get Lotus Notes @MailSend to send an exact copy of my form?

查看:77
本文介绍了如何获得Lotus Notes @MailSend发送我的表单的确切副本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我是要对卖方进行评级的买方.

For example, I am the buyer that wants to rate a seller.

我有一个卖家的样本评估.

I have this sample evaluation of a seller.

我需要向卖方伊甸F.德莱昂(Eden F. De Leon)发送电子邮件,并提供样本表格的精确副本.

I need to send an email to the seller, Eden F. De Leon, an exact copy of the sample form.

但是,我所能做的就是这段代码.

However, all I can do is this code.

{`@MailSend
(Seller;
Buyer;
"";
"Rating for: " +Seller;
"";
"Sales evaluation for : " +Seller
+@NewLine+
"Buyer : " +Buyer
+@NewLine+
"Performance : " +Performance
+@NewLine
+@NewLine+
"Areas for Improvement:"
+@NewLine+
"1. " +Development1+ " - " +Rate1
+@NewLine+
"2. " +Development2+ " - " +Rate2
+@NewLine+
"3. " +Development3+ " - " +Rate3
+@NewLine
+@NewLine+
"Recommendation : " +Recommendation
`}

这将发送这样的电子邮件通知.

This will send an email notification like this.

我该怎么做才能发送与样本表格完全相同的电子邮件通知.谢谢.

What can I do to send an email notification which looks exactly the same as Sample Form. Thanks.

推荐答案

来自 @ Mailsend的IBM文档

@MailSend(公式语言)

@MailSend (Formula Language)

有两种使用@MailSend的方法:

There are two ways to use @MailSend:

不带任何参数使用时,@ MailSend 将当前文档(评估@function时正在处理的文档)邮寄到文档的SendTo字段中指定的收件人.

When used with no parameters, @MailSend mails the current document (the one being processed when the @function is evaluated) to the recipient designated in the document's SendTo field.

文档必须具有发送至"字段.

The document must have a SendTo field.

与一个或多个参数一起使用时,@ MailSend 编写新的邮件备忘录

When used with one or more parameters, @MailSend composes a new mail memo

等,等等,等等.

您正在使用第二种方法,并在@MailSend调用中使用参数,因此您正在编写新的邮件备忘,而不是发送当前文档.

You are using the second way, with parameters in the @MailSend call, so you are composing a new mail memo instead of mailing the current document.

您应该使用第一种方法,或者应该使用LotusScript和NotesDocument.send()方法代替@Mailsend.由于您的问题是关于@Mailsend的,因此我将继续回答-但最后我将对有关使用LotusScript的最终意见进行最后的评论.

You should either be using the first way, or you should be using LotusScript and the NotesDocument.send() method instead of a @Mailsend. Since your question is about @Mailsend, I'll continue my answer for that - but I'll come back to a final comment about using LotusScript at the end.

在致电@MailSend之前,您需要将收件人的地址分配给SendTo字段.如果您的表单没有SendTo字段,请添加一个.您可以将其设为隐藏字段.仍然可以.

You will need to assign the recipient's address to the SendTo field before you call @MailSend. If your form doesn't have a SendTo field, add one. You can make it a hidden field. It will still work.

用户将阅读其电子邮件文件中的电子邮件,并且表格位于应用程序的NSF文件中,因此,为了使用户实际看到您通过电子邮件发送的文档,您还必须执行以下一项操作两件事:

The user will be reading the email in his or her mail file, and your form is in your application's NSF file, so in order for the user to actually see the document that you emailed, you will also have to do one of two things:

  • 在邮件模板中安装表单的副本,然后将该模板应用于每个收件人的邮件文件.
  • 或在表单上设置在文档中存储表单"属性.

这些选择各有利弊.模板的更新需要服务器管理员的配合,并且在升级到Domino软件之后必须再次进行.这很痛苦,但最终它会占用更少的存储空间,并为您作为应用程序开发人员带来更少的问题.使用在文档中存储表单"不会给管理员带来任何负担,但是由于通过电子邮件发送的文档和保存的文档副本都将具有存储的表单,因此这将占用更多的存储空间(虽然不是很多).更大的问题是,这将使您难以维护应用程序,因为将来对表单所做的任何更改都不会反映在已经保存的文档中.(有时这是一件好事,但通常不是.)但是,有一种解决方法,可以使用代理从每个文档中删除存储的表单,这还可以回收已使用的额外空间.

There are pros and cons to each of these choices. Updating the template requires the cooperation of your server administrators, and it has to be done again after any upgrade to the Domino software. It's a pain, but ultimately it uses less storage and causes fewer problems for you as an app developer. Using 'Store form in document' doesn't impose any burden on your admins, but since both the emailed and the saved copy of the document will have the stored form this will use more storage space (not a lot, though). The bigger problem is that it will make it harder for you to maintain your app because any changes you make to the form in the future will not be reflected in documents that are already saved. (Sometimes this is a good thing, but usually it's not.) There's a way around that, though, by using an agent to delete the stored form from every document, which also recovers the extra space that has been used.

使用LotusScript和 NotesDocument.Send()方法,您可以将表单存储在电子邮件中,而无需将其存储在应用程序NSF文件中保存的文档中.在大多数情况下,这实际上是最好的方法.

With LotusScript and the NotesDocument.Send() method, you have the ability to store the form in the email without storing it in the document that's saved in your app's NSF file. This is really the best approach in most cases.

这篇关于如何获得Lotus Notes @MailSend发送我的表单的确切副本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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