Hi,
We have an application through which we are sending mails to our employees. Now the id that we are using to send mail is being shown in the Sent By field of the mail received by employees. How can we ensure that the id name is disabled and not shown in the sent by field.
Subject: Watch out for notesdocument.send
The Send function is more than what it seems.
IBM have agreed to follow certain standards, which means that the Sender is a problem.
There is also an item added if its called from within an Agent to show its automatically generated.
To get around the problem, create and deposit the document into the router.
The key with this method is that you have to complete the Display To, CC fields for the receiving display, but also the recipients field must contain the combined list of recipients as this is what the router uses.
Also, you will probably find the Principal is the key to cover the Agent signer issue, so you can use your dev agent signer rather than server id.
This is an example of covering the bases that can be used internally or to the internet.
I’m in a little hurry, so cannot remember which fields are converted to internet addresses if sent to the SMTP gateway. (I think all would be)
Dim message As New NotesDocument (mailbox)
message.Form=“Memo”
Set body =
Subject =
message.posteddate = Now
message.from = “”
message.principal =
message.replyto =
message.subject =
message.SendTo =
message.recipients =
message.RecNoOutOfOffice = “1”
Subject: agent and sender fields
Use an agent to send the email. The agent should set the From, Sender and SMTPOriginator fields to the name you want. The agent should be signed with the serverID.