gpt4 book ai didi

lotus-notes - Lotusscript:作为网络用户发送电子邮件时的发件人地址

转载 作者:行者123 更新时间:2023-12-04 16:32:06 25 4
gpt4 key购买 nike

我有一个以 Web 用户身份运行的 lotus 脚本代理,因为我需要知道当前用户是谁并相应地处理信息。问题在于,在此代理中发送电子邮件时,发件人电子邮件地址显示的是网络用户电子邮件地址,而不是我定义的电子邮件地址。我在发送电子邮件之前设置以下字段(作为 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

但是发件人地址仍然显示为网络用户的地址。我在这里缺少什么?任何帮助将非常感激。

最佳答案

实际上通过论坛搜索我找到了解决这个古老问题的方法(http://www-10.lotus.com/ldd/nd6forum.nsf/0/13706561dc7d693f852570af0062fcec?OpenDocument):

Principle = "customerservice@xyz.com"
maildoc.Form = "Memo"
' Principal overrides From
' Must be formatted as below and must include the domain @xyz.com
' Format should equal: "From User" <fromuser@xyz.com@DOMAIN>
maildoc.Principal = |"Customer Service" <| + Principle + |@xyz.com>|
maildoc.From = Principle
maildoc.AltFrom = Principle
maildoc.SendFrom = Principle
maildoc.INetFrom = Principle
maildoc.tmpDisplaySentBy = Principle
maildoc.tmpDisplayFrom_Preview = Principle
maildoc.DisplaySent = Principle

希望这可以帮助其他人 - 这对我来说已经很长时间了!!

关于lotus-notes - Lotusscript:作为网络用户发送电子邮件时的发件人地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10676368/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com