I have a web form that uses a QuerySave agent to send email to an internet address ( like xyz.mycompany.com) The agent works when it is signed by me, but not when signed by the server. I have error coding in place, but no error is being caught.We use Directory assistance, and my name is in a secondary directory, while the server name is of course in names.nsf.
As a programer, I don’t want my name appearing on business-related emails. Any ideas?
Thank you all. I found many lines of code that were manipulating the various email fields, so I stripped out all but the bare essentials, checked the “run as web user” option for the agent, and now the emails are being sent predictably, showing the sender as the actual person sending the email.While this is not the same as showing the servername as the sender, it actually is better functionality for my users, so all is well (for the moment, at least
Sending emails as a server wouldn’t be too funny, either. The “official” way to do it, is to have the agent “run on behalf of” some technical user. To make it work, the signer of the agent needs to have the right to sing agents to run on behalf of someone else. The server will always have that right, so if you sign your design with the server ID before it goes into production, that would be one way to take care of it.
Search developerWorks for the “agent FAQ”, and you will find more details on how to provide the user name and what else you could try.
We use this technique to send e-mails that appear to come from a user named “System Notifications” which is not a real person (no Person doc, nothing set up whatsoever).