I have created an agent that sends an email to a number of people which instructs them to do certain things. The agent works fine. The user sometimes forwards the email to someone, but my email is included when it’s forwarded. How do I detach my name from the original email sent out by the agent? At times I could receive 20+ emails that has nothing to with me. Part of the code is listed below:
msg1.Subject = "Review Due for - " + ID + " - " + Title
msg1.Form = "Memo"
msg1.Principal = db.Title
msg1.DisplaySent = "From the Server"
msg1.ReplyTo = "Your Manager"
body1.AppendText emailmsg1
body1.AddNewLine 2
body1.AppendText emailmsg1a
body1.AddNewLine 2
body1.AppendText "Click here to access the database entry ---> "
body1.AppendDocLink doc, "Please click here to access the document."
Call msg1.Send (False, recipients)
Mail sent from an Agent will always be Sent From the person who signed the Agent. To overcome this, sign the agent with another ID (perhaps one with no email address).
The various options are listed in the Agent FAQ under resources. In R6 there is an additional option but it requires higher level of access. Take a look at the article called “Troubleshooting agnet sin ND5 and ND6” look for section called “How can I change the apparent sender of agent generated mail?”
Tim, you don’t have any other options. If the Principal and ReplyTo fields don’t do the trick for you, you will definitely need to get the agent signed.
What we do here at my company is have the Notes Admins sign all design elements with a standard ID when they promote changes to production.
You might want to search on Julie AND agents in this forum. Julie has a huge list of documents describing various issues with agent security.
You create the document and from using the SEND method Domino will assign you as the originator when no email address is given for the originator.
If you want to get around this, you could create a document in the mail.box on that server. Of course IBM/Lotus recommend people not create mail document directly in the mail.box.