Agent does not set “From” in header

非 Y 不嫁゛ 提交于 2019-12-11 16:18:04

问题


We have a mail agent which generates a basic mail and sends it to an mailaddress.

Dim s As New NotesSession
Dim maildoc As NotesDocument
Dim db As NotesDatabase

Set db = s.Currentdatabase
Set maildoc = New NotesDocument(db)

maildoc.Form = "Memo"
maildoc.SendTo = "test123@web.de"
maildoc.Subject = "Test"
Call maildoc.replaceitemvalue("Principal","testFrom@anydomain.de")
Call maildoc.replaceitemvalue("AltFrom","testFrom@anydomain.de")
Call maildoc.replaceitemvalue("InetPrincipal","testFrom@anydomain.de")
Call maildoc.replaceitemvalue("SMTPOriginator","testFrom@anydomain.de")
Call maildoc.replaceitemvalue("From","testFrom@anydomain.de")
Call maildoc.replaceitemvalue("sentFrom","testFrom@anydomain.de")
Call maildoc.replaceitemvalue("InetFrom","testFrom@anydomain.de")

Call maildoc.send(False,False)

When I execute this agent and look in my web.de account I see that there are not senders information. In the header of the mail there is no "from" field set. Only a "Sender" field.

Does anyone know about a server configuration or something to solve this? I don´t think it´s the agents fault, right?


回答1:


Set Principal to "testFrom@anydomain.de@DOMINODOMAIN".

So if your Domino domain is called Domain, then set it to "testFrom@anydomain.de@Domain"



来源:https://stackoverflow.com/questions/47390707/agent-does-not-set-from-in-header

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!