Parker Software Ltd Homepage
Forum Home Forum Home > Email2DB Email Parser > Scripting > Scripting Samples
  New Posts New Posts RSS Feed: Conditional Email Sending
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Conditional Email Sending - Event Date: 19 Oct 2006 - 19 Oct 2006

 Post Reply Post Reply
Author
Message
Stephen View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 Oct 2005
Location: Stoke on Trent
Posts: 1392
Post Options Post Options   Quote Stephen Quote  Post ReplyReply Direct Link To This Post Calendar Event: Conditional Email Sending
    Posted: 19 Oct 2006 at 2:01pm
Version 1.8 of Email2Db can now be set to send outgoing emails based on custom conditions.

On the Outgoing Email Message editor - create your email as normal. Then click the Conditional Send button. Enable the Conditional Send option and click the Edit button.

The script editor will open.

Here you can construct a script that sets the 'Email2DBSend' flag to True or False.

For example, suppose you have an extracted field called 'Customer'. You want to send a 'thank you' email only if the customer is Microsoft.

You would set the Conditional send script to:

Sub Main
If FIELDS_Value("Customer") = "Microsoft" Then Email2DBSend = True Else Email2DBSend = False
End Sub


When Email2DB processes the incoming email it will extract the fields. It will then send any outgoing emails. It will check any Conditional send scripts and only send those emails which have their Email2DBSend flag set to True.

Your Conditional send script can be as complex as you want.

Steve

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.125 seconds.
These are the forums for Parker Software, developers of Live Chat Software: WhosOn and Email Automation Software: Email2DB.