问题
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