Auto reply agent

305 pts.
Tags:
Lotus Notes
how to handle exceptions like out of office or auto reply loops with auto reply agent code. any info is helpful.
Dim Ses As New NotesSession .
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim Memo As NotesDocument
Dim body As NotesRichTextItem
Dim sub1, sub2, addsubject As Variant
Dim myvar As Integer
Set db = Ses.CurrentDatabase
Set doc = Ses.DocumentContext
Set Memo = db.CreateDocument
addsubject = doc.GetItemValue("Subject")
'Reply to sender with the subject created from his mail subject Memo.Subject = "Re: " + Cstr(addsubject(0)) + " -- My email address is changed now" Set Body = New NotesRichTextItem( Memo, "Body" )
'Mention your new email address here
Call Body.AppendText("My email address is changed
to 'FirstnameAdministrator@group7.com'")
sub1 = doc.GetItemValue("SendTo")
'Compare with your old email address
If (Cint(Instr(1, Cstr(sub1(0)), "fadmin@group7.com", 5))> 0) Then
sub2 = doc.GetItemValue("From")
Call Memo.Send(False, Cstr(sub2(0)) )
End If
ASKED: November 6, 2012  10:54 AM

Answer Wiki

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

Discuss This Question: 3  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
  • Gabe9527
    The OOO agent uses an OutOfOfficeLog to store the emails that have been sent a response to. This log is then checked before sending the next email.Only when the agent is stopped will the OutOfOfficeLog be cleared. I am not a dev but that is how it works... you might want to COPY and Change the OOO agent.
    10,800 pointsBadges:
    report
  • swetha1
    Thansk
    305 pointsBadges:
    report
  • swetha1
    Thanks a lot for ur sugg...will try to understand the agent
    305 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