Agent to send emails

I don't really know Lotusscript so I have to do everything in forumula langauge. I wrote a simple agent that compares a date on a document to today's date. If Today's date is greater it emails people who are part of two names fields. If I manually run this agent it works fine 100% of the time. If I schedule it the log shows that it ran fine but no emails are generated. I'm not sure what could be causing it or what I'm doing wrong. The Agent is signed by the administrator. Any ideas?
@If(@Today > ExpirationDate;@MailSend(NotificationGroup;AutoNotify;NULL;"ALERT EXPIRED";"";"Click the doclink to view the expired alert notification: " + CustName + " ";[IncludeDoclink]);"");
SELECT @All

Answer Wiki

You need to have one of your views defined as the default view (go to the view properties and on the second tab select the checkbox for ‘Default when database first opened’). Also, this view should include the documents that you are sending links to.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 5 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Thanks for the response but, I do have a default view set and it is one that contains the documents I'd be sending links too. I still find it confusing that it runs right manually but not scheduled. Like I mentioned earlier the log shows that it is running fine on the schedule. I even added a line that changes the value of a field just to confirm that it is running on it's schedule. It's just the email part that's not working. Thanks for your help, any other suggestions?

Have you tried the Agent FAQs on the Notes forum - there's a lot of useful stuff there that may help you:
http://www-10.lotus.com/ldd/46dom.nsf/7e6c7e584a76331b85256a46006f083e/574c99ccb345839185256976004e811e?OpenDocument

It might be considered a work-around but I have had good luck with creating a view that does the selection and then having the agents run using that view in the agent's selection. So, for example, in your case you'd create a view with the View Selection of all with expiration dates greater than today, then your agent's selection Document Selection statement would just be a simple search condition "In Folder ...your view name..." This works well for me.

If the Administrator id is the only member of the email group then no email will be sent. Notes does not send an email to the id sending the email even if that id is a member of the group. I assume this was done as you probably don't want to receive your own email when email a group you belong to.

This could also be a security thing.
You need to be aware that when you run the agent manually it will run under YOUR id, NOT the agent signer's id (unless specific agent settings are changed).
When you schedule it, it will then run using the signer's id.
Whilst it sounds odd, it may be that your admin id that you used to sign the agent is not set up to run agents.
Check the server configuration document in the Domino Directory to be sure.
A bit of a long shot but worth checking ...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy