Lotusscript:以Web用户身份发送电子邮件时的发件人地址 [英] Lotusscript: From address when sending email as web user
问题描述
我有一个Lotus-Script代理程序,它以Web用户身份运行,因为我需要知道当前用户是谁,并相应地处理信息.问题在于,在此代理中发送电子邮件时,发件人电子邮件地址显示的是网络用户的电子邮件地址,而不是我定义的电子邮件地址.在发送电子邮件(作为mime)之前,我需要设置以下字段:
I have a lotus-script agent which runs as Web User since I need to know who the current user is and process information accordingly. The problem is that when sending a email in this agent the From email address shows the web user email address rather than the one I have defined. I am setting the following fields before I send the email (as mime):
mailDoc.Form = "Memo"
mailDoc.Subject = strSubject
mailDoc.InetSendTo = strFrom
mailDoc.PostedDate = Now
mailDoc.Principal = strFrom
mailDoc.FROM = strFrom
mailDoc.INETFROM = strFrom
mailDoc.~INetPrincipal = strFrom
mailDoc.ReplyTo = strFrom
mailDoc.SendFrom = strFrom
mailDoc.SentBy = strFrom
mailDoc.altFrom = strFrom
mailDoc.tmpDisplaySentBy = strFrom
mailDoc.DisplaySent = strFrom
mailDoc.ToShow = strFrom
mailDoc.SendTo = strSendTo
但是发件人地址仍显示为Web用户的地址.我在这里想念什么?任何帮助将不胜感激.
But still the From address is shown as the web user's address. What am I missing here? Any help would be really appreciated.
推荐答案
字段Principal是正确的解决方案,但是在水下可能会看到真实的发件人名称.实际上,有不同的解决方案:直接在mail.box数据库中创建邮件.这就是TeamMail模板在OpenNTF上所做的工作.请参阅 http://www.openntf.org/Projects/pmt. nsf/ProjectLookup/Team%20Mail%20Tamer
The field Principal is the proper solution, but the real sender's name will probably be visible under water. Actually, there is different solution: to create the mail directly in the mail.box database. That's what the TeamMail template does on OpenNTF. See http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Team%20Mail%20Tamer
当然,这不是正确的方法,但是如果您要混淆发送者,则没有其他解决方案.
Of course, this is NOT the proper way, but if you want to obfuscate the sender, there's no other solution.
嗯,从技术上讲,这并不完全正确:您可以创建一个扩展管理器DLL来更改发件人...肮脏,您说吗?当然可以.
Well, technically that's not entirely true: you could create an Extension Manager DLL that changes the sender... Dirty, you say? Sure.
这篇关于Lotusscript:以Web用户身份发送电子邮件时的发件人地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!