Auto reply to emails having particular Subject

Hi.  Is it possible to have an auto reply on a particular mail file BUT is only sent when an incoming email contains particular words in the Subject?

Thanks
admresdevAsked:
Who is Participating?
 
Rob KnightConsultantCommented:
Hi,

These screens may help you:

 Step 1 Step 2 Step 3 Step 4 Step 5
0
 
RonaldZaalCommented:
hello, did you try to create a rule for this ?
0
 
Rob KnightConsultantCommented:
Hi,

Depends on the mail client but an email rule would be the most appropriate option - for example you could say when new mail arrives which contains 'Test', send reply.

Have a look here:

http://office.microsoft.com/en-us/outlook-help/create-a-rule-HP005242897.aspx

Regards,


RobMobility.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Rob KnightConsultantCommented:
0
 
admresdevAuthor Commented:

Hi. Thanks for your replies.... I am talking about Lotus Notes... this is the Lotus Notes Zone right or not?  Sorry if I posted in the wrong.

Lotus Notes (6.5) doesn't have REPLY in the Rules... that would have solved it.
0
 
Rob KnightConsultantCommented:
Hi,

I believe you have the option to reply when creating an agent?

Create, Agent and then select the scripting you want to use. This might help:

http://elearning5.unibg.it/help/help65_client.nsf/b3266a3c17f9bb7085256b870069c0a9/2110cfd1bf628b1785256dff00621247?OpenDocument

Regards,


RobMobility.
0
 
admresdevAuthor Commented:

Yes there is areply but cannot filter on which subject line.

I have found this code on this website and did minor changes as required, put it in an agent but stil not working.


 
Sub Initialize
	Dim s As New NotesSession 
	Dim db As NotesDatabase
	Dim doc As NotesDocument
	
	Set doc = s.DocumentContext		
	Set db = s.CurrentDatabase 'Set variables 
	
	Subj = doc.GetItemValue( "Subject" )
	Frm = doc.GetItemValue( "From" )
	
	If Instr(1, Lcase(Subj(0)), "(career)") = 0  Then
		Set maildoc = New NotesDocument (db)
		maildoc.Form = "Memo"
		maildoc.SendTo = Frm(0)
		maildoc.Principal = "Auto Notification"
		maildoc.ReplyTo = "myemail@mydomain.com"
		maildoc.Subject = "RE:" & Trim$(Subj(0)) & " (Auto Notification)"
		Set rtitem = doc.GetFirstItem( "Body" )
		
'		Produce contents of reply
		Set rti = New NotesRichTextItem (maildoc, "Body")
		Call rti.AppendText ("THIS IS AN AUTOMATED E-MAIL -- PLEASE DO NOT REPLY TO THIS E-MAIL")
		Call rti.AddNewLine( 2 )
		Call rti.AppendText ("----------------------------------------------------------")
		Call rti.AddNewLine( 2 )
		Call rti.AppendText(rtitem.Text)
		Call maildoc.Send(False)
	End If
End Sub

Open in new window


Any idea why?

Thanks
0
 
admresdevAuthor Commented:
PS: I have tried both

If Instr(1, Lcase(Subj(0)), "(career)") = 0

and

If Instr(1, Lcase(Subj(0)), "(career)") > 0

as was not sure which one returns true when subject is career
0
 
Rob KnightConsultantCommented:
Hi,

Have you tried using simple functions:

Document Selection =  field Subject contains Career
Action =  Reply to sender

Regards,


RobMobility.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.