[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1041
  • Last Modified:

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
0
admresdev
Asked:
admresdev
  • 5
  • 3
1 Solution
 
RonaldZaalCommented:
hello, did you try to create a rule for this ?
0
 
RobMobilityCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
RobMobilityCommented:
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
 
RobMobilityCommented:
Hi,

Have you tried using simple functions:

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

Regards,


RobMobility.
0
 
RobMobilityCommented:
Hi,

These screens may help you:

 Step 1 Step 2 Step 3 Step 4 Step 5
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now