Agent to send emails

pts.
Tags:
Lotus Domino
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

Thanks. We'll let you know when a new response is added.

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.

hth

Tony

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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
  • Mstefani77
    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?
    0 pointsBadges:
    report
  • TonyCC
    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
    50 pointsBadges:
    report
  • Mavis
    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.
    0 pointsBadges:
    report
  • JimmyMain
    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.
    0 pointsBadges:
    report
  • Deadleaves
    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 ...
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

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

REGISTER or login:

Forgot Password?
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! We'll email you when relevant content is added and updated.

Following